Client does not have the key to sign snapshot. Assuming that server should sign the snapshot." failed to sign docker.io/repo1/dev:f3a9d3f: trust server rejected operation

Hi Guys,

facing weird issue while signing images which was working earlier. Error we see is “Client does not have the key to sign snapshot. Assuming that server should sign the snapshot.” failed to sign docker.io/repo1/dev:f3a9d3f: trust server rejected operation".

have followed the below steps and it was working well. Suddenly it stopped working. Any pointers to resolve this.

docker login -u <username> -p <password>

# Docker Content Trust environment variables

# Turn content trust on

export DOCKER_CONTENT_TRUST=1

# The above two must be used to prevent interactive mode (if necessary)

export DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE=<root key passphrase>

export DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE=<corresponding repository key passphrase>

# Use docker commands as usual

docker push <url:label>

# You have to specify image label explicitly when you pull a signed image and DOCKER_CONTENT_TRUST is on

docker pull <url:label>