Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)
how to run docker file?

1 Answer

0 votes
by (6.9k points)

Now assuming you have created your dockerfile already with all the requirements.

You next step should be to run it, you can do so using the below command:

$ docker image build -t <name_of_image> .

This will create your custom image with the name you provided above.To check out your new image use docker images command:

$ docker images 

Then you can do as you wish with your new docker image.

Hope this helped :)


If you feel you need help from someone who has had years of industry experience with docker try out docker training course. 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...