Docker provides networking so containers can communicate with each other and with the outside world. Port mapping exposes a container's ports to the host, and networks let containers talk to each other by name. Understanding the basics is essential for running connected applications.
Port mapping — expose containers to the host
docker run -p 8080:80 nginx
