docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

Removal of exposed ports

Open smebberson opened this issue 7 years ago • 2 comments

Raised by @rbellamy, his suggestion is to remove exposed ports, and have this as a requirement of any users in their upstream images.

I agree with the theory. But how will we handle user expectation and UX in terms of actually using the images?

smebberson avatar Mar 29 '17 00:03 smebberson

This comes down to answering the following question:

Is this repository for end-point images, or for folks that will use these images to derive end-point images?

That is a mission-statement level question that has to be answered.

rbellamy avatar Apr 04 '17 16:04 rbellamy

As I using third party containers quite regulary, I found them to have some exposed ports that I do not need (and even more so a number of volumes). To help with the situation, I have created a little script to edit the metadata of a pulled image before internal use. Have a look at https://github.com/gdraheim/docker-copyedit for the workaround that docker/dockefiles can not unexpose ports.

gdraheim avatar Apr 29 '18 19:04 gdraheim