Skip to content

Commit 08a04e8

Browse files
authored
pct-set: add examples (#17630)
Update pct-set.md
1 parent 37df392 commit 08a04e8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

pages/linux/pct-set.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111

1212
`pct set {{100}} --net0 name=eth0,bridge=vmbr0,ip={{10.0.0.100/24}},gw={{10.0.0.1}}`
1313

14-
- Set container memory limit:
14+
- Set container memory and CPU limit:
1515

16-
`pct set {{100}} --memory {{8192}}`
16+
`pct set {{100}} --memory {{8192}} --cpulimit {{4}}`
17+
18+
- Mount a host file location in a guest:
19+
20+
`pct set {{100}} --mp{{0}} /{{path/to/host_directory}},mp=/{{path/to/guest_mount_point}}`
21+
22+
- Set container tags:
23+
24+
`pct set {{100}} --tags {{tag1,tag2,...}}`
25+
26+
- Remove an option:
27+
28+
`pct set {{100}} --delete {{net0,mp0,mp1,...}}`

0 commit comments

Comments
 (0)