The often misunderstood difference between ENTRYPOINT and CMD in Docker

The often misunderstood difference between ENTRYPOINT and CMD in Docker

The ENTRYPOINT instruction looks almost similar to the CMD instruction. Both of them help to define the command that will be executed at the start of the container. What is the difference between those two ?

September 10, 2022 · 2 min · Lino Layani