.dockerignore
What does a .dockerignore file do?
Part of Docker Fundamentals. Next step: Build Cache Ordering
Choose one answer
Excludes matching files from the build context sent to the builder, so COPY . . can't include them.
COPY . .
Lists files that are still copied into the image but are hidden from docker history and from the image's layer metadata.
docker history
Lists images that docker pull and docker compose pull should skip.
docker pull
docker compose pull
Lists Dockerfile instructions the builder should skip when using cached layers.