mirror of
https://github.com/docker/cli.git
synced 2025-08-31 23:02:07 +03:00
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: https://github.com/docker/cli/pull/3924#discussion_r1059986605 Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
# trust key load
|
|
|
|
<!---MARKER_GEN_START-->
|
|
Load a private key file for signing
|
|
|
|
### Options
|
|
|
|
| Name | Type | Default | Description |
|
|
|:---------|:---------|:---------|:------------------------|
|
|
| `--name` | `string` | `signer` | Name for the loaded key |
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
|
|
|
## 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-------`
|
|
|
|
```console
|
|
$ 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:
|
|
|
|
```console
|
|
$ 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
|
|
```
|