or more containers
update Update configuration of one or
more containers
wait Block until one or more
containers stop, then print their exit codes
You can run the command docker container
COMMAND --help for more information on a
command.
For the purposes of the 200-901 DevNet Associate
DEVASC exam, you are expected to know how to use
Docker images in a local developer environment. This
means you are not expected to be an expert on all things
Docker, but you do need to know how to build, launch,
and manage containers on your local machine. The
management commands you will use the most for
launching and working with Docker are within the
container and image categories. If you are working
with a container image, you use the commands under
image, and if you want to run or stop a container, you
use the commands under container. As long as you
know what you want to work on, mapping it to the
command is fairly straightforward.
Working with Containers
When working with containers, the key commands are as
follows:
create: Create a container from an image.
start: Start an existing container.
run: Create a new container and start it.
ls: List running containers.
inspect: Get detailed information regarding the container.
logs: Print run logs from the container’s execution.
stop: Gracefully stop running the container.
kill: Stop the main process in the container abruptly.
rm: Delete a stopped container.