forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ceb440
commit 9fbc74e
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# lxc | ||
|
||
> Manage Linux containers using the lxd REST API. | ||
> Any container names or patterns can be prefixed with the name of a remote server. | ||
- 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 launch [{{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}}` |