CMD vs EntryPoint

 CMD vs Entry point:

  • CMD is used to set default parameters which can be overriden by parameters sent via docker run
  • ENTRYPOINT is used to set parameters which cannot be changed,but if you want to add more parameters they can be added using CMD along with ENTRYPOINT

Comments