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

前端 未结 1 1200
轮回少年
轮回少年 2021-02-04 23:30

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

FROM ubuntu
ENTRYPOINT [\"parent-entry\"]

Now I inherit from th

相关标签:
1条回答
  • 2021-02-05 00:29

    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.

    0 讨论(0)
提交回复
热议问题