最佳答案
Is there a command/option to display or list the context which is sent to the Docker daemon for building an image?
$ docker build -t "image-name"
Sending build context to Docker daemon 8.499 MB
...
Files and directories can be excluded from the build context by specifying patterns in a .dockerignore
file. I guess what I'm looking for amounts to testing the .dockerignore
in addition to any other niche rules Docker uses when determined the context.