Skip to content

Glossary: Docker Basics

Host addresses (127.0.0.1, 0.0.0.0)

Also written: 127.0.0.1, 0.0.0.0, IPv6, [::]

`127.0.0.1` is the numeric address of localhost: a server listening only on it accepts connections just from its own computer (inside a container, just from that container). `0.0.0.0` means 'all network addresses', which a containerized server must use to accept traffic arriving through a published port; `[::]` is the same idea in IPv6, the newer, longer style of address.

Where the book teaches it

Related terms

localhostPublish (a port)Port