network namespace

The namespace that gives a process its own network interfaces, addresses, routes and ports.

In more detail

Each container normally gets its own network namespace, so two containers can both listen on port 8000 without clashing. That is also why a service listening on localhost inside a container cannot be reached from the host: localhost there is the container own loopback interface. Port publishing forwards traffic from the host into this namespace.

Related terms

Taught in

References

Certification courses