2025-03-14 21:59:59 -06:00
|
|
|
# lxc profile
|
|
|
|
|
|
|
|
|
|
> Manage profiles for LXD containers.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://documentation.ubuntu.com/lxd/latest/reference/manpages/lxc/profile/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`lxc launch {{container_image}} {{container_name}} {{[-p|--profile]}} {{profile1}} {{[-p|--profile]}} {{profile2}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Change the profiles of a running container:
|
|
|
|
|
|
|
|
|
|
`lxc profile assign {{container_name}} {{profile1,profile2}}`
|