Dockerfile Reference

The Dockerfile format reference maintained by Docker. Containerfile is a strict superset of Dockerfile, so the Dockerfile reference covers the same instruction set with Docker-specific extensions such as directives like syntax= and check=.

API entry from apis.yml

apis.yml Raw ↑
aid: containerfile:dockerfile-reference
name: Dockerfile Reference
description: The Dockerfile format reference maintained by Docker. Containerfile is a strict superset
  of Dockerfile, so the Dockerfile reference covers the same instruction set with Docker-specific extensions
  such as directives like syntax= and check=.
humanURL: https://docs.docker.com/reference/dockerfile/
baseURL: https://docs.docker.com
tags:
- Docker
- Dockerfile
- Reference
properties:
- type: Specification
  url: https://docs.docker.com/reference/dockerfile/
- type: Documentation
  url: https://docs.docker.com/build/
- type: Reference
  url: https://docs.docker.com/build/buildkit/
x-features:
- Authoritative Dockerfile reference for all instructions
- Directives such as syntax= and check= for builder behavior
- BuildKit-specific RUN --mount syntax
- Linting rules via the Dockerfile checker
x-useCases:
- Authoring Dockerfiles or Containerfiles for Docker BuildKit
- Looking up the exact syntax of an instruction or flag
- Adopting newer BuildKit features like SSH mounts