Languages
[Edit]
EN

Docker - start existing container

6 points
Created by:
Diana
720

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
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Docker - useful wiki posts

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join