Possible causes are as follows:
Solution: Reinstall the container engine.
unauthorized: authentication required
Solution: Log in to the SWR console. In the navigation pane on the left, choose My Images. On the page displayed, click Upload Through Client. Then you can find the information on how to obtain a login command.
Error llgging in to v2 endpoint, trying next endpoint: Get https://{{endpoint}}/v2/: dial tcp: lookup {{endpoint}} on xxx.xxx.xxx.xxx:53 : no such host
Solutions:
The preceding error is reported when the AK/SK in the login command with long-term validity is deleted. In this case, use a valid AK/SK to generate a login command.
Possible Causes:
The container engine client communicates with SWR through HTTPS. The client verifies the server certificate. If the server certificate is not issued by an authoritative organization, the following error message is displayed: "x509: certficate signed by unknown authority".
Solutions:
If you trust the server and skip certificate authentication, manually configure Docker startup parameters as follows:
Modify the /etc/docker/daemon.json file. If the file does not exist, manually create it. Add the following content to the file:
{ "insecure-registries": ["{Image repository address}"] }
Modify the /etc/default/docker file and add the following content to DOCKER_OPTS:
DOCKER_OPTS="--insecure-registry {image repository address}"
Modify the /etc/sysconfig/docker file and add the following content to INSECURE_REGISTRY:
INSECURE_REGISTRY='--insecure-registry {image repository address}'
The image repository address can be a domain name or an IP address.
After the configuration, run the systemctl restart docker command to restart the container engine.