April 2017
Beginner
404 pages
9h 30m
English
While building an image Docker uses entire contents of the folder as the build context. If you want the Docker daemon to ignore any specific file you can use the dockerignore file option. The Docker daemon recognizes a special type of file in the build context with the filename as .dockerignore, which can be used to let the daemon ignore files from the build context. Multiple files or directories can also be excluded from the build context using regular expressions as follows:
|
*. (extension) |
* can be used as a match all pattern. For example:
|
Read now
Unlock full access