diff --git a/docs/source/markdown/podman-network-connect.1.md b/docs/source/markdown/podman-network-connect.1.md index b60639c7b1..b1b2251539 100644 --- a/docs/source/markdown/podman-network-connect.1.md +++ b/docs/source/markdown/podman-network-connect.1.md @@ -28,17 +28,17 @@ Set a static mac address for this container on this network. ## EXAMPLE -Connect a container named *web* to a network named *test* +Connect specified container to a named network: ``` podman network connect test web ``` -Connect a container name *web* to a network named *test* with two aliases: web1 and web2 +Connect specified container to named network with two aliases: ``` podman network connect --alias web1 --alias web2 test web ``` -Connect a container name *web* to a network named *test* with a static ip. +Connect specified container to named network with a static ip: ``` podman network connect --ip 10.89.1.13 test web ``` diff --git a/docs/source/markdown/podman-network-disconnect.1.md b/docs/source/markdown/podman-network-disconnect.1.md index 0f2936969d..478049ec68 100644 --- a/docs/source/markdown/podman-network-disconnect.1.md +++ b/docs/source/markdown/podman-network-disconnect.1.md @@ -18,8 +18,8 @@ and it does not have network connectivity until a network is connected again. Force the container to disconnect from a network ## EXAMPLE -Disconnect a container named *web* from a network called *test*. +Disconnect container from specified network: ``` podman network disconnect test web ``` diff --git a/docs/source/markdown/podman-network-exists.1.md b/docs/source/markdown/podman-network-exists.1.md index 702c98ee32..28ebf8a2f1 100644 --- a/docs/source/markdown/podman-network-exists.1.md +++ b/docs/source/markdown/podman-network-exists.1.md @@ -21,20 +21,18 @@ Print usage statement ## EXAMPLE -Check if a network called `net1` exists (the network does actually exist). +Check if specified network exists (the network does actually exist): ``` $ podman network exists net1 $ echo $? 0 -$ ``` -Check if a network called `webbackend` exists (the network does not actually exist). +Check if nonexistent network exists: ``` $ podman network exists webbackend $ echo $? 1 -$ ``` ## SEE ALSO diff --git a/docs/source/markdown/podman-network-ls.1.md.in b/docs/source/markdown/podman-network-ls.1.md.in index 83244fa430..1187bea4c7 100644 --- a/docs/source/markdown/podman-network-ls.1.md.in +++ b/docs/source/markdown/podman-network-ls.1.md.in @@ -71,8 +71,7 @@ The `quiet` option restricts the output to only the network names. ## EXAMPLE -Display networks - +Display networks: ``` $ podman network ls NETWORK ID NAME DRIVER @@ -81,7 +80,7 @@ NETWORK ID NAME DRIVER 8e35c2cd3bf6 podman5 macvlan ``` -Display only network names +Display only network names: ``` $ podman network ls -q podman @@ -90,14 +89,14 @@ outside podman9 ``` -Display name of network which support bridge plugin +Display name of network which support bridge plugin: ``` $ podman network ls --filter driver=bridge --format {{.Name}} podman podman2 podman9 ``` -List networks with their subnets +List networks with their subnets: ``` $ podman network ls --format "{{.Name}}: {{range .Subnets}}{{.Subnet}} {{end}}" podman: 10.88.0.0/16 diff --git a/docs/source/markdown/podman-network-prune.1.md b/docs/source/markdown/podman-network-prune.1.md index 845a9bfe11..236bbafe24 100644 --- a/docs/source/markdown/podman-network-prune.1.md +++ b/docs/source/markdown/podman-network-prune.1.md @@ -35,12 +35,13 @@ The `until` *filter* can be Unix timestamps, date formatted timestamps, or Go du Do not prompt for confirmation ## EXAMPLE -Prune networks + +Prune networks: ``` podman network prune ``` -Prune all networks created before 2h +Prune all networks created not created in the last two hours: ``` podman network prune --filter until=2h ``` diff --git a/docs/source/markdown/podman-network-reload.1.md.in b/docs/source/markdown/podman-network-reload.1.md.in index 004cafce1a..08b6e22fe3 100644 --- a/docs/source/markdown/podman-network-reload.1.md.in +++ b/docs/source/markdown/podman-network-reload.1.md.in @@ -22,8 +22,7 @@ Reload network configuration of all containers. ## EXAMPLE -Reload the network configuration after a firewall reload. - +Reload the network configuration after a firewall reload: ``` # podman run -p 80:80 -d nginx b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c @@ -39,8 +38,7 @@ b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c works ``` -Reload the network configuration for all containers. - +Reload the network configuration for all containers: ``` # podman network reload --all b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c diff --git a/docs/source/markdown/podman-network-rm.1.md b/docs/source/markdown/podman-network-rm.1.md index 0757579e0f..788eca6ea8 100644 --- a/docs/source/markdown/podman-network-rm.1.md +++ b/docs/source/markdown/podman-network-rm.1.md @@ -21,15 +21,13 @@ Seconds to wait before forcibly stopping the running containers that are using t ## EXAMPLE -Delete the `podman9` network - +Delete specified network: ``` # podman network rm podman9 Deleted: podman9 ``` -Delete the `fred` network and all containers associated with the network. - +Delete specified network and all containers associated with the network: ``` # podman network rm -f fred Deleted: fred diff --git a/docs/source/markdown/podman-network-update.1.md b/docs/source/markdown/podman-network-update.1.md index 1bd9c2b540..d19de21c25 100644 --- a/docs/source/markdown/podman-network-update.1.md +++ b/docs/source/markdown/podman-network-update.1.md @@ -23,12 +23,12 @@ Accepts array of DNS resolvers and removes them from the existing list of resolv ## EXAMPLE -Update a network +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 +Update a network and add/remove dns servers: ``` $ podman network update network1 --dns-drop 8.8.8.8 --dns-add 3.3.3.3 ```