...

/

.dockerignore File

.dockerignore File

Get introduced to the making of the .dockerignore file which is good practice in making Docker images.

Ignoring unnecessary files


In the Docker architecture, there is a separation between the Docker CLI and the Docker daemon. The Docker CLI is used to run commands, while the Docker daemon does most of the actual work. Building an image is no different; it is the Docker daemon that is actually responsible to build the image.

Docker CLI and Docker Daemon
Docker CLI and Docker Daemon

How does this work in practice?

When the docker build command is run, the CLI tool takes all the ...