Open
Description
Reference: https://docs.docker.com/engine/reference/commandline/network/
Proposed initial syntax (more can be added in future):
- Command:
docker network create networkName
docker:
description: "Create a network"
network:
name: networkName
- Command:
docker network rm networkName
docker:
description: "Delete a network"
network:
name: networkName
absent: false
- Command:
docker network connect networkName containerA containerB
docker:
description: "Add container to a network"
network:
name: networkName
connected:
- containerA
- containerB
- Command:
docker network disconnect networkName containerA containerB
docker:
description: "Disconnect container from a network"
network:
name: networkName
disconnected:
- containerA
- containerB
- Command:
docker network disconnect -f networkName containerA containerB
docker:
description: "Force container disconnect on a network"
network:
name: networkName
disconnected:
- containerA
- containerB
force: true
The network
command can be useful to create/delete a network and associated them with containers.
Metadata
Assignees
Labels
No labels