Apologies in advance about the n00b question, but I’m really confused about how to define the configuration of a container I’m about to launch.
It seems to me that the only way to be able to control ALL the configuration parameters for a container (at the time of launch), is by using a pre-defined profile, right?
Now when I do lxc profile edit myprofile
, it shows me a YAML file that looks like this:
config: {}
description: ""
devices: {}
name: myprofile
used_by: []
The docs mention various configuration keys in the following format: bridge.driver, dns.mode, ipv4.nat
etc.
When I try to place these networking config params in a standard YAML manner, it throws an error:
devices:
eth0:
dns:
mode: none
bridge:
driver: native
Hence, this basic question. Where (and how) in the profile config file, do I place various config params that I see in the docs?
PS: I’m on Ubuntu 18.04 and using lxc v.3.0.3, I believe.