首页 > 解决方案 > 在 Arch 下创建 ubuntu 16 容器时出错

问题描述

我正在尝试使用 LXC 在 Archlinux 上安装一个 Ubuntu 容器。我正在关注本指南:https ://gist.github.com/manoj23/8a35849697945896cdaef77927c695a7

运行此命令后:

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

我收到以下错误:

Bad template: ubuntu
Error creating container ubuntu-16

为什么会这样?

标签: ubuntu-16.04x86-64archlinuxlxclinux-containers

解决方案


它在错误中说。错误的模板。

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

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


推荐阅读