2016-11-22 103 views
0

我試圖用lxc-create(v2.0.5)創建一個容器。我沒有安裝gpg,也不想安裝它(嵌入式系統,沒有GPLv3)。我試過了--no-validate選項,但lxc-create說它不存在,但它顯示它是幫助打印輸出中的一個選項。有任何想法嗎?lxc create說選項無效

# lxc-create -t download -n main --no-validate 
lxc-create: unrecognized option '--no-validate' 
Usage: lxc-create --name=NAME --template=TEMPLATE [OPTION...] 

lxc-create creates a container 

Options : 
-n, --name=NAME    NAME of the container 
-f, --config=CONFIG   Initial configuration file 
-t, --template=TEMPLATE  Template to use to setup container 
-B, --bdev=BDEV    Backing store type to use 
    --dir=DIR     Place rootfs directory under DIR 


Mandatory or optional arguments to long options are also mandatory or optional 
for any corresponding short options. 

See the lxc-create man page for further information. 

LXC container image downloader 

Optional arguments: 
[ --variant <variant> ]: Variant of the image (default: "default") 
[ --server <server> ]: Image server (default: "images.linuxcontainers.org") 
[ --keyid <keyid> ]: GPG keyid (default: 0x...) 
[ --keyserver <keyserver> ]: GPG keyserver to use 
[ --no-validate ]: Disable GPG validation (not recommended) 
[ --flush-cache ]: Flush the local copy (if present) 
[ --force-cache ]: Force the use of the local copy even if expired 

回答

3

「--no-驗證」不是「LXC-打造」一個選項,但在「下載」模板的選擇。 「 - 」

「下載」 模板選項後,必須指定:

lxc-create -t download -n main -- --no-validate