Dockerman Docs
CLI

Networks and Volumes

Manage Docker networks and volumes from the CLI — create, inspect, connect, prune.

The network and volume command groups expose every operation the GUI offers for these two resource types. Both follow the same patterns as container and image: list, inspect, create, remove/prune, plus relationship commands for networks.

Networks

List and inspect

dockerman network list
dockerman network list --pretty
dockerman network inspect bridge

Create

dockerman network create my-net \
  --driver bridge \
  --attachable \
  --enable-ipv6 \
  --option "com.docker.network.bridge.name=my-bridge" \
  --label "owner=team-a"
FlagPurpose
--driver <name>Network driver (bridge, overlay, macvlan, etc.)
--internalRestrict external connectivity
--attachableAllow standalone containers to attach (overlay only)
--ingressCreate the swarm ingress network
--enable-ipv6Enable IPv6 on the network
--option <k=v>Driver-specific option (repeatable)
--label <k=v>Network label (repeatable)

Remove

dockerman network remove my-net --yes

remove requires --yes. Built-in networks (bridge, host, none) cannot be removed.

Connect and disconnect

dockerman network connect my-net web
dockerman network disconnect my-net web --force

disconnect --force is required when the container is running and you need to detach it without stopping it.

Volumes

List and inspect

dockerman volume list
dockerman volume list --pretty
dockerman volume inspect data

Create

dockerman volume create data \
  --driver local \
  --driver-opt "type=nfs" \
  --driver-opt "o=addr=10.0.0.1,rw" \
  --driver-opt "device=:/exports/data" \
  --label "backup=daily"

--driver-opt and --label are both repeatable.

Remove

dockerman volume remove data --force --yes

remove requires --yes. --force removes a volume even if it is referenced by a stopped container.

Prune

dockerman volume prune --filter "label=temp=true" --yes

prune deletes every dangling (unreferenced) volume that matches the filter set. --filter is repeatable and uses Docker's standard filter syntax (label=, label!=, etc.). Always combine with explicit filters in scripts — bare volume prune --yes deletes every dangling volume on the host.