Docker cmd can replace all the functions of entrypoint.
ENTRYPOINTThe format and
RUNInstruction format, divided into
ENTRYPOINTThe purpose and
CMDSimilarly, the procedure and parameters for starting the container are all specified.
ENTRYPOINTIt can also be replaced at run time, but it is better than
CMDIt’s a bit cumbersome and needs to be passed
docker runParameters of
CMDThe meaning of the has changed, is no longer directly run its command, but will be
CMDThe contents of the are passed as parameters to the
ENTRYPOINTThe command, in other words, when actually executed, will become: < ENTRYPOINT> “<CMD > “