Entrypoint is an alternative to CMD, or it seems. You can pass arguments from the command line to your docker image using it, so you might like it. The syntax is
ENTRYPOINT command # or ENTRYPOINT ["command","arg1","arg2"]
command, a command in the image's language.
docker build -t image . # send some args to ENTRYPOINT docker run image "arg1" "arg2"
# If no args then call # echo "Hello world" # else # call echo on args FROM ubuntu:latest ENTRYPOINT ["echo"] CMD ["Hello", "world"]