Difference between Docker ENTRYPOINT and Kubernetes container spec COMMAND?
问题 Dockerfile has a parameter for ENTRYPOINT and while writing Kubernetes deployment YAML file, there is a parameter in Container spec for COMMAND . I am not able to figure out what's the difference and how each is used? 回答1: Kubernetes provides us with multiple options on how to use these commands: When you override the default Entrypoint and Cmd in Kubernetes .yaml file, these rules apply: If you do not supply command or args for a Container, the defaults defined in the Docker image are used.