Languages
[Edit]
EN

Docker - start existing container

6 points
Created by:
JustMike
27910

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
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