Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
linux/lxc Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lxc
> Manage Linux containers using the lxd REST API.
> Any container names or patterns can be prefixed with the name of a remote server.
> More information: <https://manned.org/lxc>.
- List local containers matching a string. Omit the string to list all local containers:
`lxc list {{match_string}}`
- List images matching a string. Omit the string to list all images:
`lxc image list [{{remote}}:]{{match_string}}`
- Create a new container from an image:
`lxc init [{{remote}}:]{{image}} {{container}}`
- Start a container:
`lxc start [{{remote}}:]{{container}}`
- Stop a container:
`lxc stop [{{remote}}:]{{container}}`
- Show detailed info about a container:
`lxc info [{{remote}}:]{{container}}`
- Take a snapshot of a container:
`lxc snapshot [{{remote}}:]{{container}} {{snapshot}}`
- Execute a specific command inside a container:
`lxc exec [{{remote}}:]{{container}} {{command}}`