【发布时间】:2016-02-03 22:52:27
【问题描述】:
我正在尝试在 centos 上创建一个 lxc 容器,但我遇到了以下错误: [user@sdn3-lnx-01 ~]$ lxc-create -t centos -n container1
lxc_container: utils.c: get_template_path: 1128 没有这样的文件或目录 - 错误的模板:centos
lxc_container: lxccontainer.c: lxcapi_create: 1223 bad template: centos
lxc_container: lxc_create.c: main: 274 创建容器container1时出错
[user@sdn3-lnx-01 ~]$
你能帮帮我吗?
【问题讨论】:
-
我不知道如何将多个答案标记为准确。我缺少 lxc 模板,所以我安装了它们。然后我应该使用带有 -t 选项的绝对路径。谢谢@fat_cheng 和@ Diego Mora Cespedes。
标签: centos containers lxc