Lesson 4 of 6
Ports & Volumes
Expose network services and persist data outside a container layer.
Port publishing maps a host port to a port inside the container.
Volumes persist or share data independently of the container lifecycle.
Example
docker run -p 3000:3000 -v app-data:/data my-appPractice challenge
Which host port receives traffic in the example command?