Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENTRYPOINT [] not resetting parent image entrypoint #8732

Closed
md5 opened this issue Oct 23, 2014 · 1 comment · Fixed by #8744
Closed

ENTRYPOINT [] not resetting parent image entrypoint #8732

md5 opened this issue Oct 23, 2014 · 1 comment · Fixed by #8744

Comments

@md5
Copy link
Contributor

md5 commented Oct 23, 2014

According to the discussion in the comments of #3465, using ENTRYPOINT [] should be a way to remove the entrypoint setting from a parent image. However, this doesn't seem to be the case:

$ { echo 'FROM busybox'; echo 'ENTRYPOINT ["/bin/true"]'; } | docker build -t test-entrypoint-1 - 
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon 
Step 0 : FROM busybox
 ---> e72ac664f4f0
Step 1 : ENTRYPOINT /bin/true
 ---> Using cache
 ---> c55134211aec
Successfully built c55134211aec
$ { echo 'FROM test-entrypoint-1'; echo 'ENTRYPOINT []'; } | docker build -t test-entrypoint-2 - 
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon 
Step 0 : FROM test-entrypoint-1
 ---> c55134211aec
Step 1 : ENTRYPOINT
 ---> Running in 52e236ac9ed7
 ---> e5ab1267141c
Removing intermediate container 52e236ac9ed7
Successfully built e5ab1267141c
$ docker inspect -f '{{.Config.Entrypoint}}' test-entrypoint-2
[/bin/true]
$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
Server version: 1.3.0
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): c78088f
@md5
Copy link
Contributor Author

md5 commented Oct 23, 2014

In particular, @tianon's comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants