2014-10-18 2 views
6

lxc 1.0.5 및 Ubuntu 14.04에 "rootfs"가없는 컨테이너를 만들고 싶습니다.rootfs없이 LXC 컨테이너를 만드는 방법

나는 이전 버전의 lxc에서 이전에 해냈습니다. 이전 버전에서는 "-t"옵션없이 lxc-create를 사용하면 "rootfs"가없는 컨테이너가 생성됩니다.

lxc-create -n foo 

그리고 난이 오류가 발생했습니다 :

그래서 시도

lxc_container: Error creating container foo 

나는 새로운 LXC 만들 맨 페이지를 참조하십시오. 내가 잘못

lxc_container: No such file or directory - bad template: none 
lxc_container: bad template: none 
lxc_container: Error creating container foo 

를하고있는 중이 야 무엇 :

lxc-create -n foo -t none 

그리고 난 다시 오류가 발생합니다 :

 
     -t template 
       'template' is the short name of an existing 'lxc-template' 
       script that is called by lxc-create, eg. busybox, debian, 
       fedora, ubuntu or sshd. Refer to the examples in 
       /usr/local/share/lxc/templates for details of the expected 
       script structure. Alternatively, the full path to an 
       executable template script can also be passed as a parameter. 
       "none" can be used to force lxc-create to skip rootfs 
       creation. 

내가 그것을 시도 : 새로운 manpage 말?

답변

11

현실이 바뀌었지만 설명서에 싫어하지 않으십니까?

-t/bin/true를 사용하여 시도하십시오.