What happens to entrypoint of Docker parent image when child defines another one?

Let’s say I’ve got the Docker image parent built by this Dockerfile:

FROM ubuntu
ENTRYPOINT ["parent-entry"]

Now I inherit from this parent image in my child image built with this code:

  • How to configure priorities for Spark and OpenMPI to coexist on a cluster?
  • Docker containers: curl between containers not working
  • Is there anyway to start rsyslogd without sudo access?
  • How to achieve consistency of re-baking an AMI
  • Kamon, Statsd, Grafana Disk Space
  • Godep not working in docker container
  • FROM parent
    ENTRYPOINT ["child-entry"]

    As far as I have tested it the entrypoint of the child image overwrites the one in the parent image.

    But since I am new to Docker I am not sure about this. My research also hasn’t yet resulted in a satisfying answer. So is the assumption above correct?

  • How to config apache (installed in server) to run a web app (django) in docker?
  • Centos cgconfig fails to start
  • Docker java:7 image apt-get update cyclic dependencies
  • Docker container exits immediately after running or restarting PostgreSQL image
  • Can I specify a file instead of a directory to send to the container in the Dockerrun.aws.json file?
  • gcc: command not found
  • One Solution collect form web for “What happens to entrypoint of Docker parent image when child defines another one?”

    The last entrypoint is used, only the last one.

    You can check, put several lines with different ENTRYPOINT in your Dockerfile, and check what happens.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.