docker-alpine
docker-alpine copied to clipboard
Removal of exposed ports
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?
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.
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.