无法使用配置文件启动LXC容器:请求的配置文件<xxx>不存在

时间:2019-11-06 07:26:15

标签: lxc lxd

我在 AWS虚拟机中拥有一个全新的Ubuntu 16.04。
我成功启动了haproxy容器:

root@ubuntu:~# lxc launch images:centos/7 haproxy
Creating haproxy
Starting haproxy  

我用lxc list进行了验证。

然后我尝试在“ k8s”配置文件中创建一个控制器,但它失败了:

root@ubuntu:~# lxc launch ubuntu:18.04 controller-0 --profile k8s
Creating controller-0
error: Failed container creation:
 - https://cloud-images.ubuntu.com/releases: Requested profile 'k8s' doesn't exist

有人知道为什么吗?

LXC版本:

root@ubuntu:~# lxc version
2.0.11

机器:

root@ubuntu:~# uname -a
Linux ip-172-31-34-118 4.4.0-1092-aws #103-Ubuntu SMP Tue Aug 27 10:21:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

参考:
我按照this视频中描述的命令进行操作。

0 个答案:

没有答案
相关问题