EN
Docker - start existing container
6
points
In this short article, we would like to show how to start an existing Docker container.
Quick solution:
docker start MY_CONTAINER_NAME
Practical example:
docker start postgress-shop
Where:
postgress-shop
is the name of the container we want to start (the name was set by--name
attribute during container creating).
To see all available containers use the following command:
docker container ls -a
Example output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dcca9aecbcff postgres "docker-entrypoint.s…" 5 hours ago Up 2 hours 0.0.0.0:5432->5432/tcp postgres-shop