2017-08-24 18:46:24 -04:00
|
|
|
# trust revoke
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2017-08-24 18:46:24 -04:00
|
|
|
Remove trust for an image
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
### Options
|
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:--------------|:-----|:--------|:-------------------------------|
|
|
|
|
| `-y`, `--yes` | | | Do not prompt for confirmation |
|
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2017-08-25 14:42:44 -04:00
|
|
|
`docker trust revoke` removes signatures from tags in signed repositories.
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Revoke signatures from a signed tag
|
|
|
|
|
2023-12-13 09:16:56 -05:00
|
|
|
Here's an example of a repository with two signed tags:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-04-19 09:43:08 -04:00
|
|
|
$ docker trust inspect --pretty example/trust-demo
|
2017-08-24 18:46:24 -04:00
|
|
|
SIGNED TAG DIGEST SIGNERS
|
|
|
|
red 852cc04935f930a857b630edc4ed6131e91b22073bcc216698842e44f64d2943 alice
|
|
|
|
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
|
|
|
|
|
2017-09-19 17:59:48 -04:00
|
|
|
List of signers and their keys for example/trust-demo:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
SIGNER KEYS
|
|
|
|
alice 05e87edcaecb
|
|
|
|
bob 5600f5ab76a2
|
|
|
|
|
|
|
|
Administrative keys for example/trust-demo:
|
2020-03-15 10:11:43 -04:00
|
|
|
Repository Key: ecc457614c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
|
|
|
|
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949
|
2017-08-24 18:46:24 -04:00
|
|
|
```
|
|
|
|
|
2017-08-25 14:42:44 -04:00
|
|
|
When `alice`, one of the signers, runs `docker trust revoke`:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2017-08-24 18:46:24 -04:00
|
|
|
$ docker trust revoke example/trust-demo:red
|
|
|
|
Enter passphrase for delegation key with ID 27d42a8:
|
|
|
|
Successfully deleted signature for example/trust-demo:red
|
|
|
|
```
|
|
|
|
|
2017-08-25 14:42:44 -04:00
|
|
|
After revocation, the tag is removed from the list of released tags:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-04-19 09:43:08 -04:00
|
|
|
$ docker trust inspect --pretty example/trust-demo
|
2017-08-24 18:46:24 -04:00
|
|
|
SIGNED TAG DIGEST SIGNERS
|
|
|
|
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
|
|
|
|
|
2017-09-19 17:59:48 -04:00
|
|
|
List of signers and their keys for example/trust-demo:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
SIGNER KEYS
|
|
|
|
alice 05e87edcaecb
|
|
|
|
bob 5600f5ab76a2
|
|
|
|
|
|
|
|
Administrative keys for example/trust-demo:
|
2020-03-15 10:11:43 -04:00
|
|
|
Repository Key: ecc457614c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
|
|
|
|
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949
|
2017-08-24 18:46:24 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
### Revoke signatures on all tags in a repository
|
|
|
|
|
|
|
|
When no tag is specified, `docker trust` revokes all signatures that you have a signing key for.
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-04-19 09:43:08 -04:00
|
|
|
$ docker trust inspect --pretty example/trust-demo
|
2017-08-24 18:46:24 -04:00
|
|
|
SIGNED TAG DIGEST SIGNERS
|
|
|
|
red 852cc04935f930a857b630edc4ed6131e91b22073bcc216698842e44f64d2943 alice
|
|
|
|
blue f1c38dbaeeb473c36716f6494d803fbfbe9d8a76916f7c0093f227821e378197 alice, bob
|
|
|
|
|
2017-09-19 17:59:48 -04:00
|
|
|
List of signers and their keys for example/trust-demo:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
SIGNER KEYS
|
|
|
|
alice 05e87edcaecb
|
|
|
|
bob 5600f5ab76a2
|
|
|
|
|
|
|
|
Administrative keys for example/trust-demo:
|
2020-03-15 10:11:43 -04:00
|
|
|
Repository Key: ecc457614c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
|
|
|
|
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949
|
2017-08-24 18:46:24 -04:00
|
|
|
```
|
|
|
|
|
2017-08-25 14:42:44 -04:00
|
|
|
When `alice`, one of the signers, runs `docker trust revoke`:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2017-08-24 18:46:24 -04:00
|
|
|
$ docker trust revoke example/trust-demo
|
2024-04-26 14:16:51 -04:00
|
|
|
Confirm you would like to delete all signature data for example/trust-demo? [y/N] y
|
2017-08-24 18:46:24 -04:00
|
|
|
Enter passphrase for delegation key with ID 27d42a8:
|
|
|
|
Successfully deleted signature for example/trust-demo
|
|
|
|
```
|
|
|
|
|
2017-08-25 14:42:44 -04:00
|
|
|
All tags that have `alice`'s signature on them are removed from the list of released tags:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-04-19 09:43:08 -04:00
|
|
|
$ docker trust inspect --pretty example/trust-demo
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
No signatures for example/trust-demo
|
|
|
|
|
|
|
|
|
2017-09-19 17:59:48 -04:00
|
|
|
List of signers and their keys for example/trust-demo:
|
2017-08-24 18:46:24 -04:00
|
|
|
|
|
|
|
SIGNER KEYS
|
|
|
|
alice 05e87edcaecb
|
|
|
|
bob 5600f5ab76a2
|
|
|
|
|
|
|
|
Administrative keys for example/trust-demo:
|
2020-03-15 10:11:43 -04:00
|
|
|
Repository Key: ecc457614c9fc399da523a5f4e24fe306a0a6ee1cc79a10e4555b3c6ab02f71e
|
|
|
|
Root Key: 3cb2228f6561e58f46dbc4cda4fcaff9d5ef22e865a94636f82450d1d2234949
|
2017-08-24 18:46:24 -04:00
|
|
|
```
|
|
|
|
|