Skip to content

Glossary: Docker Basics

CMD

Also written: exec form

The Dockerfile instruction that sets the default command a container runs. The bracket list form (exec form) runs the program directly without a shell, and a command given after the image name replaces it.

Where the book teaches it

Related terms

ENTRYPOINTDockerfileGunicorn