A context directory is a directory containing the files and build instructions made available to a container image build.
A context directory contains a Containerfile and the other files made available during a container image build. Podman reads source files such as index.html from this directory when executing COPY instructions. section 2.3.2
Use a context directory to organize and automate image builds:
Create an application directory, place the Containerfile and application content inside it, then run podman build with that directory as the context. section 2.3.2
Automate repeated builds and pushes with a script that invokes podman build against the same context directory. section 2.3.2
For podman play kube --build, create a subdirectory matching each image name and place its Containerfile or Dockerfile there. section 8.3.2
copy instructionused by · The Dockerfile COPY instruction copies files or directories from a build context or another build stage into an image’s filesystem.
Dockerfilehas part · A Dockerfile is a text file containing declarative instructions for building a container image and specifying its contents and runtime metadata.
This explainer was generated by Manning's knowledge graph from the text of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more. The section links point to the parts of the book it draws on.