docker-network - Man Page
Manage networks
Examples (TL;DR)
- List all available and configured networks on Docker daemon:
docker network ls
- Create a user-defined network:
docker network create --driver driver_name network_name
- Display detailed information about one or more networks:
docker network inspect network_name1 network_name2 ...
- Connect a container to a network using a name or ID:
docker network connect network_name container_name|ID
- Disconnect a container from a network:
docker network disconnect network_name container_name|ID
- Remove all unused (not referenced by any container) networks:
docker network prune
- Remove one or more unused networks:
docker network rm network_name1 network_name2 ...
Synopsis
docker network
Description
Manage networks
Options
-h, --help[=false] help for network
See Also
docker(1), docker-network-connect(1), docker-network-create(1), docker-network-disconnect(1), docker-network-inspect(1), docker-network-ls(1), docker-network-prune(1), docker-network-rm(1)
Referenced By
docker-network-connect(1), docker-network-create(1), docker-network-disconnect(1), docker-network-inspect(1), docker-network-ls(1), docker-network-prune(1), docker-network-rm(1).
Dec 2024 Docker Community Docker User Manuals