Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker execute command in container

# Windows Powershell | CMD
# Make sure open as administrator
docker exec <container name> <command>
# Linux
sudo docker exec -it <container name> <command>
Comment

docker run command on container

sudo docker exec -it <container name> <command>
Comment

DOCKER RUN commands

docker run hello-world //запуск контейнра
-it //осатся внутри контейнера
-d //без подключения к контейнеру
--name //дать имя контейнеру

docker run -d --rm -p 4444:4444 selenium/standalone-chrome:3.141.59 //запуск сервера
//запуск теста на LOCALHOST
docker run --rm --network host  --mount type=bind,src=C:UsersValeraDesktopLearnQA_DockerAutotests,target=/usr/src/mymaven -w /usr/src/mymaven  maven:3.6.3-ibmjava-8 mvn -q -Dtest=SimpleTest test
Comment

PREVIOUS NEXT
Code Example
Shell :: how to mount device linux 
Shell :: yarn add global 
Shell :: install specific webpack version 
Shell :: git id 
Shell :: edit text file bash 
Shell :: react native reactotron bug 
Shell :: unity download android sdk 
Shell :: linux resize images in folder 
Shell :: ubuntu dotnet 6 
Shell :: git pull remote 
Shell :: installing appimage file ubuntu 
Shell :: gulp install 
Shell :: push an existing repository from the command line on github 
Shell :: add group 
Shell :: generate signing key android 
Shell :: add husky commitlint 
Shell :: removing letstencrypt from domain 
Shell :: assigning permissions to folder and files in linux 
Shell :: get public ip linux 
Shell :: start stop restart pm2 
Shell :: how install hub on ubuntu 
Shell :: terminal shortcut ubuntu 
Shell :: echo new line to file 
Shell :: lxml parser 
Shell :: install docker debian 
Shell :: install npm windows subsystem linux 
Shell :: how to install aiohttp on vscode 
Shell :: concat strings inside array bash script 
Shell :: git list files with size 
Shell :: docker change timezone 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =