Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in DevOps and Agile by (2.3k points)
how to start a container in docker?

1 Answer

0 votes
by (6.9k points)
edited by

Well it's easy:

First list down all the images you have using this command:

$ docker images

Choose the image you want to make a container out of . for eg. if the image is ubuntu, Then use the below command to launch an ubuntu container:

$ docker run --name ubuntu-image ubuntu:latest

the above command follow the syntax:

$ docker run --name <name of the container> <name of the image>

With this command you have started your container, to view all the started containers use the below command:

$ docker ps

Hope this helped :)


New to docker? need professional help in docker check out docker training course.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...