entrypoint cmd command docker-compose
p.p1 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px ‘Helvetica Neue’; color: #454545; min-height: 17.0px} p.p2 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px ‘Helvetica Neue’; color: #454545} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; color: #454545; min-height: 15.0px} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; color: #454545} p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; color: #454545; min-height: 14.0px} span.s1 {font: 12.0px ‘.PingFang TC’} span.s2 {font: 14.0px ‘.PingFang TC’}
https://medium.freecodecamp.org/docker-entrypoint-cmd-dockerfile-best-practices-abc591c30e21
Step
.First
Dockerfile ENTRYPOINT use all uppercase letters
Docker Compose entrypoint use lowercase letters.
.Second
CMD / command
The main purpose of a
CMD (Dockerfiles) /
command (Docker Compose files)
is to provide defaults when executing a container. These will be executed after the entrypoint.
===================
https://beginor.github.io/2017/10/21/dockerfile-cmd-and-entripoint.html