Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

While practicing docker, I use this command for starting up a container:

$ docker run a8asd8f9asdf0

This brings a question to my mind, "what the use of docker start?"

$ docker start

1 Answer

0 votes
by (6.9k points)

To get a clear idea let's define both:

Start: This is used to startup a container that was previously stopped for whatever purpose. 

for E.g. If you used docker stop CONTAINER_ID to stop a container,all you need to do is to use docker start CONTAINER_ID command to restart the previously stopped container and no data would be lost.

Run: This is used to create completely new containers using an image and then starting them up. You can create multiple replicas of the same image, 

This is the command : docker run IMAGE_ID

Hope that helped :)


Looking for professional training in docker get certified by completing docker training course online.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...