NAME 名称

podman-network-update - Update an existing Podman network
podman-network-update - 更新现有的 Podman 网络

SYNOPSIS 概要

podman network update [options] network
podman 网络更新 [选项] 网络

DESCRIPTION 描述

Allow changes to existing container networks. At present, only changes to the DNS servers in use by a network is supported.
允许更改现有容器网络。目前,仅支持更改网络使用的 DNS 服务器。

NOTE: Only supported with the netavark network backend.
注意:仅支持 netavark 网络后端。

OPTIONS 选项

--dns-add

Accepts array of DNS resolvers and add it to the existing list of resolvers configured for a network.
接受 DNS 解析器数组,并将其添加到为网络配置的解析器列表中。

--dns-drop

Accepts array of DNS resolvers and removes them from the existing list of resolvers configured for a network.
接受 DNS 解析器数组,并从网络的现有解析器列表中删除它们。

EXAMPLE 例子 ¶

Update a network: 更新网络:

$ podman network update network1 --dns-add 8.8.8.8,1.1.1.1

Update a network and add/remove dns servers:
更新网络并添加/删除 DNS 服务器:

$ podman network update network1 --dns-drop 8.8.8.8 --dns-add 3.3.3.3

SEE ALSO 参见 ¶

podman(1), podman-network(1), podman-network-inspect(1), podman-network-ls(1)
podman(1),podman-network(1),podman-network-inspect(1),podman-network-ls(1)