Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

interact with docker container shell

docker container run --name c1 --rm -d nginx:latest
docker container exec c1 cat /etc/nginx/nginx.conf
docker container exec -it c1 sh
Source by learndocker.online #
 
PREVIOUS NEXT
Tagged: #interact #docker #container #shell
ADD COMMENT
Topic
Name
5+7 =