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:

  • Why docker login command saves unencrypted password on my computer?
  • Why do I get an authorization error from Docker when I'm trying to pull a public image?
  • GitlabCI free shared runners to provision Ubuntu instead of CoreOS?
  • Vagrant + Docker + WordPress
  • Discovering nsqd server address from nslookupd
  • datapower cannot be installed in docker
  • 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?

  • s3 mounted inside the container. how to expose it to the host?
  • Connecting php docker to mqtt docker
  • NODE: npm ERR! Could not get cache stat on npm install
  • how to add user for docker mongodb
  • Is it possible to pause a Docker image build?
  • flannel tunnel solution in kubernetes
  • 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.