The EXPOSE instruction in a Dockerfile tells Docker that the container listens on the specified network port at runtime. When building the image, this port is marked as exposed in the image metadata. However, this does not automatically make the port accessible from the host machine. To allow access, you must map the container port to a host port using the -p option when running the container. For example, running 'docker run -p 8080:80' maps container port 80 to host port 8080. Without this mapping, the port is only open inside the container and cannot be reached from outside. This visual execution showed reading the Dockerfile, building the image, running the container with and without port mapping, and how the port exposure and mapping affect accessibility.