When building an image in Jenkins, an error is reported: Repository not found: Does not exist or no pull access analysis solution
1. When building an image in jenkins, an error is reported: repository registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php72 Not found: not not exist or no pull access. as shown in Figure 1
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 item, build – execute shell – command, the value of the user name and password needs to be modified. as shown in Figure 2
#!/bin/bash
docker login --username= --password= registry-vpc.cn-beijing.aliyuncs.com
3. Build again, the construction is successful. as shown in Figure 3


