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 and empty cmd #2072

Closed
noteed opened this issue Oct 2, 2013 · 5 comments
Closed

entrypoint and empty cmd #2072

noteed opened this issue Oct 2, 2013 · 5 comments

Comments

@noteed
Copy link

noteed commented Oct 2, 2013

This is similar to #1405, but instead of specifying entrypoint and not cmd, it is with specifying both of them but with cmd [].

I.e.

ENTRYPOINT ["echo"]

and

ENTRYPOINT ["echo"]
CMD []

should both work identically (the second doesn't work).

@crosbymichael
Copy link
Contributor

@noteed Well in your first example an empty array is not the same thing as a nil array.

@noteed
Copy link
Author

noteed commented Oct 2, 2013

@crosbymichael Ok, but still, shouldn't they work the same way ? It is weird you cannot use CMD explicitely to provide no default arguments.

@crosbymichael
Copy link
Contributor

Tagged as an easy fix

@joelreymont
Copy link

This should be fixed by #2266.

@shykes
Copy link
Contributor

shykes commented Jan 6, 2014

This is a special case of resetting a property inherited from the base image. That generic case is handled in #3465.

Closing this in favor of the more generic version.

@shykes shykes closed this as completed Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants