This visual execution shows how Docker exposes container ports to the host machine. We start a container with the command 'docker run -p 8080:80 nginx' which maps container port 80 to host port 8080. The container runs nginx listening on port 80 internally. When the host accesses localhost:8080, the request is forwarded to the container's port 80 and nginx responds. When the container stops, the port mapping is removed and the host can no longer access the service. Variables like container port, host port, container running state, and host access change step by step. Key points include specifying both host and container ports in -p, understanding local host access, and that port mapping ends when the container stops.