November 2018
Beginner
230 pages
6h 4m
English
Sometimes, when you have a container running detached, you might want to get access to it, but don't want to attach to the executing command. You can accomplish this by using the container exec command. This command allows you to execute another command in the running container, without attaching to or interfering with the already-running command. This command is often used to create an interactive session with an already-running container or to execute a single command within the container. The command looks like this:
# start an nginx container detacheddocker container run --detach --name web-server1 -p 80:80 nginx# see that the container is currently runningdocker container ls# execute other commands in the running ...
Read now
Unlock full access