docker trust key load

描述加载私钥文件进行签名
用法docker trust key load [OPTIONS] KEYFILE

描述

docker trust key load将私钥添加到本地 Docker 信任密钥库。

要将签名者添加到存储库,请使用 。docker trust signer add

选项

选择违约描述
--namesigner加载的键的名称

例子

加载单个私钥

对于具有权限的私有密钥alice.pem-rw-------

$ docker trust key load alice.pem

Loading key from "alice.pem"...
Enter passphrase for new signer key with ID f8097df:
Repeat passphrase for new signer key with ID f8097df:
Successfully imported key from alice.pem

要指定名称,请使用标志:--name

$ docker trust key load --name alice-key alice.pem

Loading key from "alice.pem"...
Enter passphrase for new alice-key key with ID f8097df:
Repeat passphrase for new alice-key key with ID f8097df:
Successfully imported key from alice.pem