--filter,-f=filter=value
Provide filter values.
The filters argument format is of key=value. If there is more than one filter, then pass multiple
OPTIONS: --filterfoo=bar--filterbif=baz.
Supported filters:
┌──────────┬───────────────────────────────────────┐
│ Filter │ Description │
├──────────┼───────────────────────────────────────┤
│ driver │ Filterbydrivertype. │
├──────────┼───────────────────────────────────────┤
│ id │ Filter by full or partial network ID. │
├──────────┼───────────────────────────────────────┤
│ label │ Filter by network with (or without, │
│ │ in the case of label!=[...] is used) │
│ │ the specified labels. │
├──────────┼───────────────────────────────────────┤
│ name │ Filter by network name (accepts │
│ │ regex). │
├──────────┼───────────────────────────────────────┤
│ until │ Filter by networks created before │
│ │ given timestamp. │
├──────────┼───────────────────────────────────────┤
│ dangling │ Filter by networks with no containers │
│ │ attached. │
└──────────┴───────────────────────────────────────┘
The driver filter accepts values: bridge, macvlan, ipvlan.
The labelfilter accepts two formats. One is the label=key or label=key=value, which shows images with
the specified labels. The other format is the label!=key or label!=key=value, which shows images without
the specified labels.
The untilfilter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m,
1h30m) computed relative to the machine’s time.
The danglingfilter accepts values true or false.
--format=format
Change the default output format. This can be of a supported type like 'json' or a Go template. Valid
placeholders for the Go template are listed below:
┌────────────────────┬───────────────────────────────────────┐
│ Placeholder │ Description │
├────────────────────┼───────────────────────────────────────┤
│ .Created... │ Timestamp when the network was │
│ │ created │
├────────────────────┼───────────────────────────────────────┤
│ .DNSEnabled │ Network has dns enabled (boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .Driver │ Networkdriver │
├────────────────────┼───────────────────────────────────────┤
│ .ID │ NetworkID │
├────────────────────┼───────────────────────────────────────┤
│ .Internal │ Networkisinternal(boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .IPAMOptions... │ Networkipamoptions │
├────────────────────┼───────────────────────────────────────┤
│ .IPv6Enabled │ Network has ipv6 subnet (boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .Labels │ Networklabels │
├────────────────────┼───────────────────────────────────────┤
│ .Name │ Networkname │
├────────────────────┼───────────────────────────────────────┤
│ .NetworkDNSServers │ Array of DNS servers used in this │
│ │ network │
├────────────────────┼───────────────────────────────────────┤
│ .NetworkInterface │ Name of the network interface on the │
│ │ host │
├────────────────────┼───────────────────────────────────────┤
│ .Options... │ Networkoptions │
├────────────────────┼───────────────────────────────────────┤
│ .Routes │ List of static routes for this │
│ │ network │
├────────────────────┼───────────────────────────────────────┤
│ .Subnets │ List of subnets on this network │
└────────────────────┴───────────────────────────────────────┘
--no-trunc
Do not truncate the network ID.
--noheading,-n
Omit the table headings from the listing.
--quiet,-q
The quiet option restricts the output to only the network names.