2014-10-18 14 views
6

Voglio creare un contenitore senza "rootfs" in lxc 1.0.5 e Ubuntu 14.04.Come creare un contenitore LXC senza rootfs

L'ho fatto prima nelle versioni precedenti di lxc. Nelle versioni precedenti, se usassimo lxc-create senza l'opzione "-t", verrà creato un contenitore senza "rootfs".

così cerco:

lxc-create -n foo 

e ho ottenuto questo errore:

lxc_container: Error creating container foo 

ho letto nuova manpage LXC-creare. Il nuovo manpage dicono:

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

ho provato:

lxc-create -n foo -t none 

e ottengo di nuovo errore:

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

Che cosa sto facendo di sbagliato?

risposta

11

Non lo odi quando cambia la realtà, ma la documentazione no?

Provare a utilizzare -t/bin/true

Problemi correlati