在 arch 下创建 ubuntu 16 容器时出错 [英] Error creating ubuntu 16 container under arch

查看:39
本文介绍了在 arch 下创建 ubuntu 16 容器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 LXC 在 Archlinux 上安装一个 Ubuntu 容器.我正在按照本指南进行操作:https://gist.github.com/manoj23/8a35849697927a7a95cdaef77927c695a79595c695a7/p>

在我运行这个命令之后:

lxc-create --name=ubuntu-16 --template=ubuntu -- --release xenial --arch amd64

我收到以下错误:

坏模板:ubuntu创建容器 ubuntu-16 时出错

为什么会这样?

它在错误中说.模板错误.

您可以看到在当前版本的lxc中没有ubuntu 模板.要点可能适用于之前的版本.

LXC 文档并没有任何使用其更新方法的明确示例.Ubunu LXC 文档虽然如此.https://help.ubuntu.com/lts/serverguide/lxc.html

I am trying to install a Ubuntu container on Archlinux using LXC. I am following this guide:https://gist.github.com/manoj23/8a35849697945896cdaef77927c695a7

After I run this command:

lxc-create --name=ubuntu-16 --template=ubuntu -- --release xenial  --arch amd64 

I get the following error:

Bad template: ubuntu
Error creating container ubuntu-16

Why is this happening?

解决方案

It says in the error. Bad template.

You can see that in the current version of lxc there is no ubuntu template. The gist is probably for the previous version.

The LXC documentation does not really have any clear examples of using their updated method. The Ubunu LXC documentation does though. https://help.ubuntu.com/lts/serverguide/lxc.html

这篇关于在 arch 下创建 ubuntu 16 容器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆