I’m trying to get some environment variables to show up inside a container, but I’m having problems.
lxc config set ubuntu environment.ZZZ Something. After that
lxc exec ubuntu -- env shows the variable, so LXD probably did something right.
lxc console ubuntu and then
env doesn’t show the variable. Even doing
lxc restart ubuntu && lxc console ubuntu and then running
env doesn’t show the variable.
I’m confused. I’d expect those variables set through LXD to be global for the machine running inside the container. What is the point of having this configuration option if only LXD can see them?