Error creating ubuntu 16 container under arch

断了今生、忘了曾经 提交于 2019-12-13 02:49:35

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/51713879/error-creating-ubuntu-16-container-under-arch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!