Docker Containers: Key Commands
Get a brief summary of the commands for managing Docker containers covered in this chapter.
We'll cover the following...
Summary of the Docker container commands
-
docker run
is the command to start new containers. We give it the name of an image, and it starts a container from it. For example, thedocker run -it ubuntu bash
command starts an interactive container from the Ubuntu image and runs the Bash shell. -
Ctrl-PQ
is how we detach from a container stopping the process ...