mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 06:54:16 +00:00
Update cheatsheets
This commit is contained in:
33
linux/lxc-profile
Normal file
33
linux/lxc-profile
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lxc profile
|
||||
|
||||
> Manage profiles for LXD containers.
|
||||
> More information: <https://linuxcontainers.org/lxd/docs/master/profiles>.
|
||||
|
||||
- List all available profiles:
|
||||
|
||||
`lxc profile list`
|
||||
|
||||
- Show the configuration of a specific profile:
|
||||
|
||||
`lxc profile show {{profile_name}}`
|
||||
|
||||
- Edit a specific profile in the default editor:
|
||||
|
||||
`lxc profile edit {{profile_name}}`
|
||||
|
||||
- Edit a specific profile importing the configuration values from a file:
|
||||
|
||||
`lxc profile edit {{profile_name}} < {{config.yaml}}`
|
||||
|
||||
- Launch a new container with specific profiles:
|
||||
|
||||
`lxc launch {{container_image}} {{container_name}} --profile {{profile1}} --profile {{profile2}}`
|
||||
|
||||
- Change the profiles of a running container:
|
||||
|
||||
`lxc profile assign {{container_name}} {{profile1,profile2}}`
|
||||
Reference in New Issue
Block a user