Problem: When you run the docker pull command to pull an image from SWR, error message "x509: certificate signed by unknown certificates" is displayed.
Possible Causes:
Solution:
{ "insecure-registries":["Image repository address"] }
INSECURE_REGISTRY='--insecure-registry=Image repository address'
After configuration, run the systemctl restart docker or service docker start command to restart the container engine.
Problem: When you run the docker pull command to pull an image from SWR, message "Error: remote trust data does not exist" is displayed.
Possible cause: The image signature verification is enabled on the client. However, the image to be pulled does not contain a signature layer.
Solution: Check whether the environment variable DOCKER_CONTENT_TRUST is set to 1. If yes, delete DOCKER_CONTENT_TRUST=1 from the /etc/profile file and run the source /etc/profile command to make the modification take effect.