Introduction
Uses CMD OR ENTRYPOINT | ARGS OR COMMAND
CMD ENTRYPOINT
- CMD sets default command and/or parameters, which can be overwritten from the command line when the docker container runs.
- ENTRYPOINT command and parameters will not be overwritten from the command line. Instead, all command-line arguments will be added after ENTRYPOINT parameters.
Dockerfile vs Pod Definition File
Dockerfile | Pod Definition File |
ENTRYPOINT[“”] | command[“”] |
CMD[“”] | args:[“”] |