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?

  • Using docker on Mac. Is it possible to start docker daemon using docker-machine and pass in arguments?
  • Build and Publish docker images to Nexus3
  • Reload code inside docker container. PM2. Node js
  • Enable SSL on GitLab with Docker on Synology NAS
  • Docker-client Java API : The server failed to respond with a valid HTTP response
  • docker: how to show the diffs between 2 images
  • Failed connections between docker containers
  • How to have 2 angular based apps which are dockerised running on same ubuntu machine
  • How to use Let's Encrypt with Docker container based on the Node.js image
  • Docker compose doesn't recognize 'env_file'
  • condas `source activate virtualenv` does not work within Dockerfile
  • Nginx conf template not working with dokku
  • 2 Solutions collect form web for “Difference between Docker ENTRYPOINT and Kubernetes container spec COMMAND?”

    I think your looking for command tag in the image section.

    you can refer this flannel yaml file.



    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.