Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
Upstream-commit: 532d223db4
Component: cli
1.4 KiB
1.4 KiB
title, description, keywords
| title | description | keywords |
|---|---|---|
| key load | The key load command description and usage | Key, notary, trust |
trust key load
Usage: docker trust key load [OPTIONS] KEY
Load a signing key
Description
docker trust key load adds private keys to the local docker trust keystore. To add a signer to a repository use docker trust signer add.
docker trust key load is currently experimental.
Examples
Load a single private key
For a private key alice.pem with permissions -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
to specify a name use the --name flag
$ 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