FreeKB - Docker docker start command
Docker - docker start command

This assumes you have installed Docker on LinuxDocker is running, and that you have created a container. The docker start command is used to start a container. In this example, the container named my-container will be started.

docker start my-container


The docker ps command can be used to determine if the container is running. If the status of the container is "Exited", use the docker logs command to determine why the container has exited.

docker ps

CONTAINER ID     IMAGE              COMMAND                 CREATED         STATUS     PORTS     NAMES
d937372c09ab9    b939aa938add9913   "/docker-entrypoin..."  6 minutes ago   Created              my-container


The -a or --attach option can be used to print stdout and stderr to the console.

docker start --attach my-container


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter ceeb2 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |