Skip to content

Set image

Before getting started, let's create an image that we will use throughout this guide. In this case, my dockerhub username is rewanthtammana, replace it accordingly.

# Replace the dockerhub username
export DOCKERHUB_USERNAME=rewanthtammana
export IMAGE=$DOCKERHUB_USERNAME/sigstore-the-easy-way
docker pull nginx
docker tag nginx $IMAGE
docker push $IMAGE

cosign-sign-and-verify-with-key-set-image

It's recommended to use digest values with an image instead of tags like latest, v1, etc., for signing, verifying, deploying, etc.

IMAGEDIGEST=$(docker manifest inspect --verbose $IMAGE | jq -r '.Descriptor.digest')
export [email protected]$IMAGEDIGEST
echo $IMAGE

set-image-with-digest


Last update: 2022-11-24 05:02:08
Created: 2022-11-24 05:02:08