docker trust key load
Load a private key file for signing
Usage
$ docker trust key load [OPTIONS] KEYFILE
Refer to the options section for an overview of available OPTIONS for this command.
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.
For example uses of this command, refer to the examples section below.
Options
| Name, shorthand | Default | Description |
--name |
signer |
Name for the loaded key |
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
Parent command
| Command | Description |
|---|---|
| docker trust key | Manage keys for signing Docker images |
Related commands
| Command | Description |
| docker trust key generate | Generate and load a signing key-pair |
| docker trust key load | Load a private key file for signing |