mirror of
https://github.com/docker/cli.git
synced 2025-08-29 00:47:54 +03:00
these markdown files are not consumed directly in the docs, but only their content is included through the YAML does, so there's no need to have these comments in them Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1.1 KiB
1.1 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] KEYFILE
Load a private key file for signing
Options:
--help Print usage
--name string Name for the loaded key (default "signer")
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
.
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