mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Regenerated the yaml files after fixing a bug in the generator script that caused some extended descriptions and examples to not be included. Also fixes the generated YAML to use the "long form" format, instead of the compact format (where newlines were encoded as `\n`). This makes the YAML more "human readable", and makes reviewing updates easier. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
command: docker trust key load
|
|
short: Load a private key file for signing
|
|
long: |-
|
|
`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`.
|
|
usage: docker trust key load [OPTIONS] KEYFILE
|
|
pname: docker trust key
|
|
plink: docker_trust_key.yaml
|
|
options:
|
|
- option: name
|
|
value_type: string
|
|
default_value: signer
|
|
description: Name for the loaded key
|
|
deprecated: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
examples: |-
|
|
### Load a single private key
|
|
|
|
For a private key `alice.pem` with permissions `-rw-------`
|
|
|
|
```bash
|
|
$ 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:
|
|
|
|
```bash
|
|
$ 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
|
|
```
|
|
deprecated: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|