⬅️ Docker 🔗 Stack Overflow
-
Docker has a default entrypoint which is
/bin/sh -c
but does not have a default command. -
When you run docker like this:
docker run -i -t ubuntu bash
the entrypoint is the default/bin/sh -c
, the image isubuntu
and the command isbash
-
the
ENTRYPOINT
specifies a command that will always be executed when the container starts. -
The
CMD
specifies arguments that will be fed to theENTRYPOINT