commands.sh

lxc profile

linux

Manage profiles for LXD containers.

More info →

Options (1)

-p, --profileboolean

Launch a new container with specific profiles

Example: lxc launch {{container_image}} {{container_name}} {{[-p|--profile]}} {{profile1}} {{[-p|--profile]}} {{profile2}}

Examples (6)

List all available profiles

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 < config.yaml profile edit profile_name

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
made by @shridhargupta | data from tldr-pages