lxc-profile

Manage profiles for LXD containers.

TLDR

List all available profiles

$ lxc profile list
copy


Show the configuration of a specific profile
$ lxc profile show [profile_name]
copy


Edit a specific profile in the default editor
$ lxc profile edit [profile_name]
copy


Edit a specific profile importing the configuration values from a file
$ lxc profile edit [profile_name] < [config.yaml]
copy


Launch a new container with specific profiles
$ lxc launch [container_image] [container_name] --profile [profile1] --profile [profile2]
copy


Change the profiles of a running container
$ lxc profile assign [container_name] [profile1,profile2]
copy

Copied to clipboard