Help Center/ CodeArts Build/ FAQs/ Using Docker for Build/ No Permission to Pull Images When SWR Public Images Are Used
Updated on 2023-12-05 GMT+08:00

No Permission to Pull Images When SWR Public Images Are Used

Symptoms

When a build task is executed, the following error information is displayed in the log:

Get https://swr.example.example.com/v2/codeciexample-test/demo/manifests/v1.1: denied: You may not login yet

Cause Analysis

When the build task contains the action Use SWR Public Image, an error is reported because the permission of the Docker image invoked for building is not set to public.

Solution

Log in to SWR, find the image used during the build, edit the image, and set the image type to be public. The procedure is as follows:

  1. Log in to SWR.
  2. In the navigation pane, choose My Images, click the image name to go to the image details page, and click Edit in the upper right corner.
  3. In the edit box, set Type to Public.