docker_create
Creates a Docker network or volume with specified driver, subnet, gateway, or NFS options, requiring confirm=true to apply the change.
Instructions
Create a network or a volume. Needs confirm=true.
kind: network or volume. Network: driver (bridge, macvlan ...), subnet, gateway, ip_range, parent (the host interface for macvlan, for example eth0.20), internal. Volume: driver (default local) and options, for example an NFS volume: options {"type": "nfs", "o": "addr=192.0.2.10,nfsvers=3,hard", "device": ":/export/share"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| kind | Yes | ||
| name | Yes | ||
| driver | No | ||
| parent | No | ||
| subnet | No | ||
| confirm | No | ||
| gateway | No | ||
| options | No | ||
| internal | No | ||
| ip_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |