-
Notifications
You must be signed in to change notification settings - Fork 797
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
Unexpose a port from base image #5867
Labels
Comments
Seems reasonable, interested in opening a PR? |
I would love to, but I don't speak Go. And I'm not having the time to learn it. |
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
Jan 2, 2025
Fixes: containers#5867 Signed-off-by: Daniel J Walsh <[email protected]>
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
Jan 7, 2025
Fixes: containers#5867 Signed-off-by: Daniel J Walsh <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Base images sometimes promise more than what we end up actually using. In analogy to
--unsetenv
and--unsetlabel
, I'd very much welcome an option to unexpose a port from the final image.My use-case: a Tomcat image exposes ports for the HTTP, HTTPS and AJP protocols, but I modify the configuration to only bind on the HTTP one (and leave HTTPS to a reverse proxy).
The text was updated successfully, but these errors were encountered: