Docker: ENTRYPOINT vs CMD



examples/curl-runner/Dockerfile
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y curl

CMD ["--silent", "http://httpbin.org/get"]
ENTRYPOINT ["curl"]

$ docker build -t mydocker .
$ docker run --rm  mydocker
$ docker run --rm  mydocker https://szabgab.com/