mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 02:55:17 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/lxc-create
Normal file
21
tldr/linux/lxc-create
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lxc-create
|
||||
|
||||
> Create linux containers.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started>.
|
||||
|
||||
- Create a container interactively in `/var/lib/lxc/`:
|
||||
|
||||
`lxc-create --name {{container}} --template download`
|
||||
|
||||
- Create a container in a target directory:
|
||||
|
||||
`lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
|
||||
|
||||
- Create a container passing options to a template:
|
||||
|
||||
`lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`
|
||||
Reference in New Issue
Block a user