docker-network: add page (#4633)

beep
Gaurav Chaudhari 2020-10-13 16:28:53 +05:30 committed by GitHub
parent 3097a8c50e
commit a00334e5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# docker network
> Create and manage docker networks.
> More information: <https://docs.docker.com/engine/reference/commandline/network/>.
- 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 of a space-separated list of networks:
`docker network inspect {{network_name}}`
- 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 a space-separated list of unused networks:
`docker network rm {{network_name}}`