Container Registry can build container images from source code repositories such as Alibaba Cloud Codeup, GitHub, GitLab, Git, and Gitee. It also supports automatic image builds when you update your source code. This topic answers frequently asked questions about this feature.
Unlink a repository or switch accounts
-
GitHub source code repository
Log in to GitHub and navigate to the Settings > Applications > Authorized OAuth Apps page. Find the authorized application, such as Aliyun Container Registry, and click Revoke all in the upper-right corner.
-
GitLab source code repository
Log in to the source code repository and revoke the previously bound access token on the settings page.
Go to your project's Settings > Access Tokens page. In the Active project access tokens list, find the target token and click Revoke.
GitLab repository binding errors
-
Error message: The source code repository site is inaccessible. Please confirm that the binding information is correct or try again later.
Cause 1:
Your self-hosted GitLab instance is not responding to requests.
Solution:
-
If you are using an Enterprise Edition instance to connect through a VPC, verify that the VPC access link is configured correctly. For more information, see Step 1: Manage links. If you are connecting over the public network or using a Personal Edition instance, ensure that your self-hosted GitLab is publicly accessible.
-
Verify that your binding information, such as the GitLab URL, username, and access token, is correct.
Cause 2:
Your GitLab instance is using an invalid TLS certificate, such as a self-signed certificate or a certificate with an incomplete certificate chain.
Solution:
Use an SSL checker to validate your certificate.
Cause 3:
A network issue is causing the request to your GitLab instance to time out.
Solution:
Check your network connection and try again later.
-
-
Error message: The source code repository site returned an error response. Please confirm that the binding information is correct.
This error typically occurs when Container Registry connects to GitLab successfully, but GitLab returns an error because of a configuration issue.
Cause 1:
The source code repository account does not have permission to configure a webhook.
Solution:
Ensure that you can access the Settings > Integrations page for the selected repository in GitLab.
Cause 2:
The binding information is incorrect.
Solution:
Verify that the username and repository name in your source code repository match the Git repository URL.