Why Does an Image Fail to Be Uploaded Through a Container Engine Client?

denied: you do not have the permission

Problem: When you push an image to SWR through your container engine client, the operation fails with the following information returned.

denied: you do not have the permission

Possible Causes:

Solutions:

Message "tag does not exist: xxxxxx" or "An image does not exist locally with the tag: xxxxxx" Displayed

Problem: When you push an image to SWR through your container engine client, the operation fails with the following information returned.

tag does not exist: xxxxxx

Or

An image does not exist locally with the tag: xxxxxx

Possible cause: The image or image tag to be pushed does not exist.

Solution: Run the docker images command to view all the local images. Check the target image name and tag, and push the image again.

name invalid: 'repository' is invalid

Problem: When you push an image to SWR through your container engine client, the operation fails with the following information returned.

name invalid: 'repository' is invalid

Possible cause: The organization name or image name does not comply with the naming rules.

Solution: The regular expressions of the organization (namespace) name and image (repository) name are as follows:

Organization name: The value contains a maximum of 64 characters and must meet regular expression ^([a-z]+(?:(?:(?:_|__|[-]*)[a-z0-9]+)+)?)$.

Image name: The value contains a maximum of 128 characters and must meet regular expression ^([a-z0-9]+(?:(?:(?:_|__|[-]*)[a-z0-9]+)+)?)$.

Specify a valid organization name or image name, and push the image again.

Image Push Occasionally Times Out

Problem: Image push occasionally times out.

Solution: When you push an image from a server in Chinese mainland to a server outside Chinese mainland, the network may be unstable.