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
Override EXPOSE from parent Dockerfile #2210
Comments
CLOSEPORT isn't exactly the opposite of EXPOSE, but then, OPENPORT would probably be a better INSTRUCTION what about Apache.conf style?
|
OPENPORT vs CLOSEPORT makes sense. I like the Apache style too for its conciseness. I think we should go with the one that's easier to implement. |
I'll take it. |
What if I don't want people to override the settings that I specify in my images? Shouldn't the parent image dictate and child images extend? |
EXTEND OFF in the parent Dockerfile? A new verb, not implemented yet ;-). |
Maybe PORTFREEZE? EXTEND OFF sounds like you can't do anything in the child. |
This seems to be a generic problem: resetting image properties to drop the inheritance and start from scratch. This applies to I would prefer seeing a generic solution to this problem. |
Closing in favor of the more generic #3465 |
Sometimes when you create a Dockerfile from another "parent" Dockerfile, you want to use new port mappings that are different from those from the parent Dockerfile. For example, in the parent Dockerfile, I expose port 22 for ssh, but in a child Dockerfile, I want to close it up and use port 5555 instead. I'm imagining something like this:
// parent
EXPOSE 22``
// child
FROM parent
// just close port 22
CLOSEPORT 22
or
// child
FROM parent
// just close all the ports
CLOSEPORT``
The text was updated successfully, but these errors were encountered: