Close
AlgoliaLogoLight
Close full mode
logo

Docker network

Git RepositoryEdit on Github

List all networks

docker network ls

Remove a network

docker network rm network-name

Example of using host network

  • !!! The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
  • Run Nginx from localhost:80 but other resources isolated from a host
docker run --rm -d --network host --name my_nginx nginx
Loading comments...