方法来自 https://github.com/lxc/lxd/issues/910
lxc config set 容器名字 environment.环境变量名=环境变量值
例如要设置 容器abcd的环境变量 eee=123
lxc config set abcd environment.eee=123
该篇博客介绍了如何通过LXC(Linux Containers)的命令`lxcconfigset`来设置容器的环境变量,提供了具体的命令示例,例如设置容器abcd的环境变量eee为123的步骤。
方法来自 https://github.com/lxc/lxd/issues/910
lxc config set 容器名字 environment.环境变量名=环境变量值
例如要设置 容器abcd的环境变量 eee=123
lxc config set abcd environment.eee=123
192
1319

被折叠的 条评论
为什么被折叠?