mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 03:57:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -16,6 +16,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pct set {{100}} --net0 name=eth0,bridge=vmbr0,ip={{10.0.0.100/24}},gw={{10.0.0.1}}`
|
||||
|
||||
- Set container memory limit:
|
||||
- Set container memory and CPU limit:
|
||||
|
||||
`pct set {{100}} --memory {{8192}}`
|
||||
`pct set {{100}} --memory {{8192}} --cpulimit {{4}}`
|
||||
|
||||
- Mount a host file location in a guest:
|
||||
|
||||
`pct set {{100}} --mp{{0}} /{{path/to/host_directory}},mp=/{{path/to/guest_mount_point}}`
|
||||
|
||||
- Set container tags:
|
||||
|
||||
`pct set {{100}} --tags {{tag1,tag2,...}}`
|
||||
|
||||
- Remove an option:
|
||||
|
||||
`pct set {{100}} --delete {{net0,mp0,mp1,...}}`
|
||||
|
||||
Reference in New Issue
Block a user