cmd run entrypoint docker code example
Example 1: CMD or Entrypoint in Docker
FROM ubuntu:trusty
CMD ["/bin/ping","localhost"]
Example 2: docker run with entrypoint
sudo docker run -it --entrypoint /bin/bash [docker_image]
FROM ubuntu:trusty
CMD ["/bin/ping","localhost"]
sudo docker run -it --entrypoint /bin/bash [docker_image]