Skip to content
Edith

Docs

Command reference

ed machines docker networks

Lists the docker networks on the machine.

Output
ed machines docker networks [--json] <machine>

Arguments

Name Type / values Default What it does
<machine> machine name, ssh alias, id, or any unambiguous prefix required Which machine to ask.

Options

Name Type / values Default What it does
--json flag off Emit JSON on stdout instead of the table.
--help, -h flag off Print the help for this command on stdout and exit 0.
Output
$ ed machines devbox docker networksNAME                     DRIVER  SCOPEbridge                   bridge  localhost                     host    localnone                     null    localnoveum-local-db_default  bridge  local
JSON
[  {    "driver": "bridge",    "id": "5b5aedee9cc4",    "name": "bridge",    "scope": "local"  },  {    "driver": "bridge",    "id": "a3f0be1c77d2",    "name": "noveum-local-db_default",    "scope": "local"  }]

id is the truncated twelve character id docker prints for networks, not the full one: unlike ps and images, this command does not pass --no-trunc.

Examples

Output
ed machines devbox docker networksed machines devbox docker networks --json | jq -r '.[] | select(.driver == "bridge") | .name'

Behaviour notes

Read only, 30 second ceiling, docker network ls --format '{{json .}}'. The three built-in networks, bridge, host and none, are always listed and are never touched by prune networks.

Where to go next