Close Docker expose port from parent file

Viewed 3326

I have made my own Dockerfile for a apache server that starts with an standard parent file. See first line in my Dockerfile below:

FROM php:7.0-apache
EXPOSE 8080

This parent exposes port 80. Now have I exposed port 8080 in my Dockerfile. Only when I run it both ports are exposed.

It it posible to close the parent port 80 in my Dockerfile? As I cannot edit that file.

3 Answers
Related