The docker build command

Now that you have learned how to create and properly write a Dockerfile, it's time to learn how to take it from just a file to an actual image. There are a lot of switches that you can use while using the docker build command. So, let's use the always handy --help switch on the docker build command to view what all we can do:

$ docker image build --help 
Usage: docker image build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile

There are then a lot of flags listed that you can pass when building your image.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset