我的系统:Ubuntu 14.04.2 amd64
看到这个:
$ lxc-create --template download --name mycontainer
Setting up the GPG keyring
Downloading the image index
---
DIST RELEASE ARCH VARIANT BUILD
---
centos 6 amd64 default 20150415_02:16
centos 6 i386 default 20150415_02:16
debian wheezy amd64 default 20150414_22:42
debian wheezy armel default 20150412_22:42
debian wheezy armhf default 20150414_22:42
debian wheezy i386 default 20150414_22:42
gentoo current amd64 default 20150414_14:12
gentoo current armhf default 20150414_14:12
gentoo current i386 default 20150414_14:12
oracle 6.5 amd64 default 20150415_11:40
oracle 6.5 i386 default 20150415_11:40
plamo 5.x amd64 default 20150414_21:36
plamo 5.x i386 default 20150414_21:36
ubuntu precise amd64 default 20150415_03:49
ubuntu precise armel default 20150415_03:49
ubuntu precise armhf default 20150415_03:49
ubuntu precise i386 default 20150415_03:49
ubuntu trusty amd64 default 20150415_03:49
ubuntu trusty armhf default 20150415_03:49
ubuntu trusty i386 default 20150415_03:49
ubuntu trusty ppc64el default 20150415_03:49
ubuntu utopic amd64 default 20150415_03:49
ubuntu utopic armhf default 20150415_03:49
ubuntu utopic i386 default 20150415_03:49
ubuntu utopic ppc64el default 20150415_03:49
---
现在,相同的命令,但使用 sudo:
$ sudo lxc-create --template download --name mycontainer
[sudo] password for user:
Setting up the GPG keyring
Downloading the image index
---
DIST RELEASE ARCH VARIANT BUILD
---
centos 6 amd64 default 20150415_02:16
centos 6 i386 default 20150415_02:16
centos 7 amd64 default 20150415_02:16
debian jessie amd64 default 20150414_22:42
debian jessie armel default 20150414_22:42
debian jessie armhf default 20150414_22:42
debian jessie i386 default 20150414_22:42
debian sid amd64 default 20150414_22:42
debian sid armel default 20150412_22:42
debian sid armhf default 20150414_22:42
debian sid i386 default 20150414_22:42
debian wheezy amd64 default 20150414_22:42
debian wheezy armel default 20150412_22:42
debian wheezy armhf default 20150414_22:42
debian wheezy i386 default 20150414_22:42
fedora 19 amd64 default 20150415_01:27
fedora 19 armhf default 20150415_01:27
fedora 19 i386 default 20150415_01:27
fedora 20 amd64 default 20150415_01:27
fedora 20 armhf default 20150415_01:27
fedora 20 i386 default 20150415_01:27
gentoo current amd64 default 20150414_14:12
gentoo current armhf default 20150414_14:12
gentoo current i386 default 20150414_14:12
oracle 6.5 amd64 default 20150415_11:40
oracle 6.5 i386 default 20150415_11:40
plamo 5.x amd64 default 20150414_21:36
plamo 5.x i386 default 20150414_21:36
ubuntu precise amd64 default 20150415_03:49
ubuntu precise armel default 20150415_03:49
ubuntu precise armhf default 20150415_03:49
ubuntu precise i386 default 20150415_03:49
ubuntu trusty amd64 default 20150415_03:49
ubuntu trusty armhf default 20150415_03:49
ubuntu trusty i386 default 20150415_03:49
ubuntu trusty ppc64el default 20150415_03:49
ubuntu utopic amd64 default 20150415_03:49
ubuntu utopic armhf default 20150415_03:49
ubuntu utopic i386 default 20150415_03:49
ubuntu utopic ppc64el default 20150415_03:49
ubuntu vivid amd64 default 20150415_03:49
ubuntu vivid armhf default 20150415_03:49
ubuntu vivid i386 default 20150415_03:49
ubuntu vivid ppc64el default 20150415_03:49
---
似乎有些图像不可用于非特权容器(如CentOS 7
)。我如何将完整的图像列表与我自己的用户一起使用?我不喜欢使用特权容器。