Updated on 2024-11-06 GMT+08:00

Pulling an Image

How Do I Pull an Image from SWR by Calling APIs?

Currently, SWR does not provide APIs for image pull. You can pull images using the docker push command on a client.

Where Are the Images Pulled by docker pull Stored?

Images pulled by running the docker pull command are stored on your local hosts. You can run the docker save command to save images into TAR archive files.

Can I Pull Images from Another Region?

Cross-region image pull over public network is supported.

Cross-region image pull over public network is supported. Ensure that you have obtained the correct login command.

Can I Access SWR over a Private Network? Will I Be Charged for Pushing and Pulling Images over a Private Network?

If your machine and the image repository are in the same region, you can access the image repository over private networks. No additional fees are charged for private network access because you have paid for your servers and EIPs.

If your machine and the image repository are in different regions, the node must have access to public networks to pull images from the image repository.

Can I Pull Images on the SWR Console to a Local PC?

Images stored in SWR cannot be directly downloaded through the console. You can perform the following operations to pull the images:

  1. Obtain the image pull command on the image details page.
  2. Run the obtained command on the device where the Docker client is installed.
  3. Save the image as a TAR or TAR.GZ file.

    Example:

    docker save nginx:v1 > nginx.tar

  4. Download the file to the local host.

What Are the Possible Causes of Slow Image Pull?

  1. The network is abnormal.
  2. There are multiple image layers.
  3. Image pull tasks are serially executed. A task cannot be executed until the previous task is complete. The timeout interval for a pull task is 30 minutes.

Will a Pulled Image Overwrite an Existing Image with the Same Name and Tag?

If they have the same manifest, the existing image will not be overwritten. Otherwise, it will be overwritten.