In this short article, we would like to show how to start an existing Docker container.
docker start MY_CONTAINER_NAME
docker start postgress-shop
postgress-shopis the name of the container we want to start (the name was set by
--nameattribute during container creating).
To see all available containers use the following command:
docker container ls -a
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