What is the Docker Build Context?

Card Puncher Data Processing

About

The Docker Build Context or Build Context or Context 1) is a list of files sent to the daemon when the build command is executed

Example

All files from:

  • a directory if they are not in ignore file
  • a archive

Tip

Mount

A build context can be mounted with –mount option of the RUN command in order to run a build script.





Discover More
Docker Build Context
Docker - Build (an image from a Dockerfile)

The build command creates an image from: a Dockerfile. and a build context : A build context is a list of files sent to the daemon. Example: All files from: a directory if they are not in ignore...
Card Puncher Data Processing
DockerFile - Run command

The RUN instruction will execute any commands in a new layer on top of the current image and commit the results. With the --mount option , you don't need to copy executing script and dependencies...



Share this page:
Follow us:
Task Runner