2014-10-18 6 views
6

Ich möchte einen Container ohne "rootfs" in lxc 1.0.5 und Ubuntu 14.04 erstellen.Wie erstelle ich einen LXC Container ohne rootfs

Ich habe es zuvor in früheren Versionen von lxc. In früheren Versionen, wenn wir lxc-create ohne die Option "-t" verwenden, wird ein Container ohne "rootfs" erstellt.

so versuche ich:

lxc-create -n foo 

und ich habe diesen Fehler:

lxc_container: Error creating container foo 

Ich lese neue lxc erstellen manpage. Die neue manpage sagen:

 
     -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. 

ich es versuchen:

lxc-create -n foo -t none 

und ich bekomme Fehler wieder:

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

Was mache ich falsch?

Antwort

11

Hassen Sie es nicht, wenn sich die Realität ändert, aber die Dokumentation nicht?

Versuchen Sie es mit -t/bin/true

Verwandte Themen