buildah icon indicating copy to clipboard operation
buildah copied to clipboard

Unexpose a port from base image

Open jdvorak001 opened this issue 11 months ago • 3 comments

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

jdvorak001 avatar Dec 07 '24 19:12 jdvorak001

Seems reasonable, interested in opening a PR?

rhatdan avatar Dec 09 '24 13:12 rhatdan

I would love to, but I don't speak Go. And I'm not having the time to learn it.

jdvorak001 avatar Dec 27 '24 22:12 jdvorak001

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Jan 27 '25 00:01 github-actions[bot]