host network

A mode where a container uses the host network directly instead of getting its own.

In more detail

With --network host the container shares the host network namespace: no port publishing is needed and ports clash with host services. It removes a layer of isolation and behaves differently on Docker Desktop, so use it only when you need it.

Related terms

Taught in

References

Certification courses