1. When building the image in Jenkins, an error occurs: repository registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php72 not found: does not exist or no pull access. See Figure 1.

Dockerfile
RUN chown -R nginx:nginx /mcloud/www/ && \
rm -rf /etc/nginx/conf.d/status.conf && \
chmod +x /usr/local/bin/composer && \
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ && \
cd /mcloud/www/cmcp-api && \
composer install
2. Adjust the configuration options under Build – Execute shell – Command; the username and password values need to be modified. See Figure 2.

Bash
#!/bin/bash
docker login --username= --password= registry-vpc.cn-beijing.aliyuncs.com
3. Build again, and the build succeeds. See Figure 3.

