I was trying to launch a privileged container with nesting. What will be the exact syntax?
I tried below syntax… but getting error…
lxc launch ubuntu:18.04 c1 -c security.privileged=true security.nesting=true t
What error are you getting?
I am getting Error: Invalid number of arguments
root@vmi307975:~# lxc launch ubuntu:18.04 c1 -c security.privileged=true securit y.nesting=true
Description:
Create and start instances from images
Usage:
lxc launch [<remote>:]<image> [<remote>:][<name>] [flags]
Examples:
lxc launch ubuntu:18.04 u1
lxc launch ubuntu:18.04 u1 < config.yaml
Create and start the instance with configuration from config.yaml
Flags:
-c, --config Config key/value to apply to the new instance
--empty Create an empty instance
-e, --ephemeral Ephemeral instance
-n, --network Network name
--no-profiles Create the instance with no profiles applied
-p, --profile Profile to apply to the new instance
-s, --storage Storage pool name
--target Cluster member name
-t, --type Instance type
--vm Create a virtual machine
Global Flags:
--debug Show all debug messages
--force-local Force using the local unix socket
-h, --help Print help
--project string Override the source project
-q, --quiet Don't show progress information
-v, --verbose Show all information messages
--version Print version number
**Error: Invalid number of arguments**
Try
lxc launch ubuntu:18.04 c1 -c security.privileged=true -c security.nesting=true
Thanks !!! Tomp… worked as expected