Abstract


Keyword at Runtime


ENV

  • Set the Environment Variable in the Docker Container

CMD

  • Can be used to run commands we want in the Docker Container
  • Can be overwritten by the

ENTRYPOINT

  • Usually used to specify the executable that will be executed. The executable is usually the application we want to run inside the container
  • Can’t be overwritten by the docker run

CMD + ENTRYPOINT