Complete the command to enable Docker content trust.
export DOCKER_CONTENT_TRUST=[1]Setting DOCKER_CONTENT_TRUST to true enables Docker content trust, which ensures image signing and verification.
Complete the command to sign a Docker image named 'myapp' with tag 'v1'.
docker trust sign [1]:v1The image name is 'myapp', so the command signs 'myapp:v1'.
Fix the error in the command to verify a signed image 'backend:latest'.
docker trust [1] backend:latestThe correct subcommand to verify a signed image is check. Other options are invalid for this purpose.
Fill both blanks to create a Docker trust policy file that requires signed images for the repository 'myrepo'.
{
"[1]": {
"myrepo": {
"[2]": "signed"
}
}
}The JSON policy uses the key repositories to list repos, and require to enforce signed images.
Fill all three blanks to list signed tags of the image 'frontend' in the Docker trust system.
docker trust [1] [2] --[3]
The command docker trust list frontend --pretty lists signed tags in a readable format.