Containers are started using either the docker start command; or the docker run command.
docker stop CONTAINER_ID
, you can relaunch the same container with the command docker start CONTAINER_ID
, and the data and settings will be the same.docker run IMAGE_ID
and not docker run CONTAINER_ID
.docker start nginx-container
Find the ID of the container using the docker ps command.
docker start ad6d2272092a
docker start nginx-container httpd-container
docker run -itd --name=nginx-container nginx