NAME

Podman-network-ls-显示网络摘要

SYNOPSIS

podman network ls [options]

DESCRIPTION

显示现有Podman网络的列表。

OPTIONS

--filter-f = filter=value

提供筛选器值。

The filters argument format is of key=value. If there is more than one filter, then pass multiple OPTIONS: --filter foo=bar --filter bif=baz.

支持的筛选器:

Filter

Description

司机

按驱动程序类型筛选。

ID号

按完整或部分网络ID进行过滤。

标签

按带(或不带)网络过滤,如果是LABEL!= [...] 是使用的)指定的标签。

名字

按网络名称过滤(接受 regex )。

直到

按给定时间戳之前创建的网络进行过滤。

晃来晃去的

按未附加容器的网络进行筛选。

这个 driver 筛选器接受的值: bridgemacvlanipvlan

The label filter 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 until filter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine’s time.

The dangling filter accepts values true or false.

--format = 格式化

更改默认输出格式。这可以是受支持的类型,如‘json’或GO模板。下面列出了GO模板的有效占位符:

Placeholder

Description

.创建..

创建网络的时间戳

.DNSEnabled

网络启用了DNS(布尔值)

.驱动程序

网络驱动程序

.id

网络ID

.内部

网络是内部的(布尔值)

.IPAM选项...

网络IPAM选项

.IPv6已启用

网络具有IPv6子网(布尔值)

.Labels

网络标签

.name

网络名称

.NetworkDNSServers

此网络中使用的DNS服务器阵列

.NetWork接口

主机上的网络接口的名称

选项..。

网络选项

.路由

此网络的静态路由列表

.子网

此网络上的子网列表

--no-trunc

请勿截断网络ID。

--noheading-n

从列表中省略表格标题。

--quiet-q

这个 quiet 选项将输出限制为仅网络名称。

EXAMPLE

显示网络:

$ podman network ls
NETWORK ID    NAME         DRIVER
88a7120ee19d  podman       bridge
6dd508dbf8cd  podman6  bridge
8e35c2cd3bf6  podman5  macvlan

仅显示网络名称:

$ podman network ls -q
podman
podman2
outside
podman9

支持网桥插件的网络显示名称:

$ podman network ls --filter driver=bridge --format {{.Name}}
podman
podman2
podman9

列出网络及其子网:

$ podman network ls --format "{{.Name}}: {{range .Subnets}}{{.Subnet}} {{end}}"
podman: 10.88.0.0/16
podman3: 10.89.30.0/24 fde4:f86f:4aab:e68f::/64
macvlan:

另请参阅

[podman(1)] , [podman-network(1)] , [podman-network-inspect(1)] , [podman-network-create(1)]

HISTORY

2021年8月,由Paul Holzingerpholing@redhat.com用新的网络格式更新

2019年8月,最初由Brent Baudebbaude@redhat.com汇编