Docker ENTRYPOINT & CMD: Dockerfile best practices

Docker ENTRYPOINT & CMD: Dockerfile best practices

6 years ago
Anonymous $oIHRkISgaL

https://medium.freecodecamp.org/docker-entrypoint-cmd-dockerfile-best-practices-abc591c30e21

The Docker instructions, CMD and ENTRYPOINT, are used in Dockerfiles and Docker Compose files to configure the commands used to run a container. This tutorial will explain the differences between them and how to best use them in your Dockerfiles.

Entrypoint sets the command and parameters that will be executed first when a container is run.