.dockerignore

The .dockerignore file, as we discussed earlier, is used to exclude those files or folders we don't want include in the docker build as by default, all files in the Dockerfile folder will be uploaded. We also discussed placing the Dockerfile in a separate folder, and the same applies for .dockerignore. It should go in the folder where the Dockerfile was placed. Keeping all the items you want to use in an image in the same folder will help you keep the number of items, if any, in the .dockerignore file to a minimum.

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

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