1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 09:06:01 +02:00
tldr/pages/linux/lxc-profile.md
Managor 611d2c9a04
linux*: refresh old pages part 2 (#16263)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-27 10:35:40 +03:00

784 B

lxc profile

Manage profiles for LXD containers. More information: https://documentation.ubuntu.com/lxd/latest/reference/manpages/lxc/profile/.

  • 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}} {{[-p|--profile]}} {{profile1}} {{[-p|--profile]}} {{profile2}}

  • Change the profiles of a running container:

lxc profile assign {{container_name}} {{profile1,profile2}}