docker trust signer add
描述 | 添加签名者 |
---|---|
用法 | docker trust signer add OPTIONS NAME REPOSITORY [REPOSITORY...] |
描述
docker trust signer add
将签署人添加到已签名的仓库。
选项
选择 | 违约 | 描述 |
---|---|---|
--key | 签名者的公钥文件的路径 |
例子
将签署者添加到仓库
要将新签名者 添加到此存储库:alice
$ docker trust inspect --pretty example/trust-demo
No signatures for example/trust-demo
List of signers and their keys:
SIGNER KEYS
bob 5600f5ab76a2
Administrative keys for example/trust-demo:
Repository Key: 642692c14c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949
添加 :alice
docker trust signer add
$ docker trust signer add alice example/trust-demo --key alice.crt
Adding signer "alice" to example/trust-demo...
Enter passphrase for repository key with ID 642692c:
Successfully added signer: alice to example/trust-demo
docker trust inspect --pretty
现在列为有效签名者:alice
$ docker trust inspect --pretty example/trust-demo
No signatures for example/trust-demo
List of signers and their keys:
SIGNER KEYS
alice 05e87edcaecb
bob 5600f5ab76a2
Administrative keys for example/trust-demo:
Repository Key: 642692c14c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949