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

Unexpose a port from base image #5867

Open
jdvorak001 opened this issue Dec 7, 2024 · 2 comments · May be fixed by #5893
Open

Unexpose a port from base image #5867

jdvorak001 opened this issue Dec 7, 2024 · 2 comments · May be fixed by #5893

Comments

@jdvorak001
Copy link

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).

@rhatdan
Copy link
Member

rhatdan commented Dec 9, 2024

Seems reasonable, interested in opening a PR?

@jdvorak001
Copy link
Author

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
@rhatdan rhatdan linked a pull request Jan 2, 2025 that will close this issue
rhatdan added a commit to rhatdan/buildah that referenced this issue Jan 7, 2025
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