Skip to content

Glossary: Go in Practice

Publish (a port)

Also written: -p, published port

Forward a port on your machine into a container, as `-p 8080:8080` does. The server inside must listen on all interfaces, such as `:8081`, not `localhost`.

Where the book teaches it

Related terms

docker runHost addresses (127.0.0.1, 0.0.0.0)