- FROM image : Set the base image.
- RUN command : Run a command.
- CMD command : Set a default command that will run when the container starts.
- ENV VAR=VALUE : Set environment variables.
- ADD source destination : Copy files from source to the container' filesystem at the destination.
- COPY source destination : Copy new files or directories from source and add them to the filesystem of the container at the destination.
- ENTRYPOINT command : Allow you to configure a container that will run as an executable.
- LABEL : Adds metadata to an image.
- EXPOSE : Informs Docker that the container listens on the specific network ports at runtime.
- ENTRYPOINT : Allows you to configure a container that will run as executable.
- VOLUME : Creates a mount point with the specified name and marks as holding externally mounted volumes from native host or other containers.
- USER : Sets the user name (or UID) and optionally the user group (or GID) to use when running the image and for any RUN, CMD and ENTRYPOINT instructions that follow it in the Dockerfile.
- WORKDIR : Sets the working directory for any RUN, CMD, ENTRYPOINT , COPY, and ADD instructions that follow it in the Dockerfile.
- ARG : Defines a variable that users can pass at build-time to the builder with the docker build command.
- ONBUILD : Adds a trigger instruction when the image is used as t base for another build.
Tags
Docker Cheat list