Skip to content

Commit 930ba01

Browse files
committed
podman-update: fix EXAMPLES
Mainly this fixes an issue of using /dev/zero for block device examples. Also: * fix section title; * remove separate cgroup v2 and v1 examples, only leaving one; * break long lines. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 8a35dfc commit 930ba01

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/source/markdown/podman-update.1.md.in

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@ Changing this setting resets the timer, depending on the state of the container.
9595
@@option unsetenv.update
9696

9797

98-
## EXAMPLEs
98+
## EXAMPLES
9999

100-
Update a container with a new cpu quota and period.
100+
Update a container with a new cpu quota and period:
101101
```
102-
podman update --cpus=5 myCtr
102+
podman update --cpus=0.5 ctrID
103103
```
104104

105-
Update a container with all available options for cgroups v2.
105+
Update a container with multiple options at ones:
106106
```
107-
podman update --cpus 5 --cpuset-cpus 0 --cpu-shares 123 --cpuset-mems 0 --memory 1G --memory-swap 2G --memory-reservation 2G --blkio-weight-device /dev/zero:123 --blkio-weight 123 --device-read-bps /dev/zero:10mb --device-write-bps /dev/zero:10mb --device-read-iops /dev/zero:1000 --device-write-iops /dev/zero:1000 --pids-limit 123 ctrID
108-
```
109-
110-
Update a container with all available options for cgroups v1.
111-
```
112-
podman update --cpus 5 --cpuset-cpus 0 --cpu-shares 123 --cpuset-mems 0 --memory 1G --memory-swap 2G --memory-reservation 2G --memory-swappiness 50 --pids-limit 123 ctrID
107+
podman update --cpus 5 --cpuset-cpus 0 --cpu-shares 123 --cpuset-mems 0 \\
108+
--memory 1G --memory-swap 2G --memory-reservation 2G \\
109+
--blkio-weight-device /dev/sda:123 --blkio-weight 123 \\
110+
--device-read-bps /dev/sda:10mb --device-write-bps /dev/sda:10mb \\
111+
--device-read-iops /dev/sda:1000 --device-write-iops /dev/sda:1000 \\
112+
--pids-limit 123 ctrID
113113
```
114114

115115
## SEE ALSO

0 commit comments

Comments
 (0)