构建镜像的报错日志
:52.710940 1 postexecutorstep.go:117] Executing step: commit image
I0318 06:15:52.712210 1 postexecutorstep.go:529] Creating the download path ‘/tmp/s2i035439427/metadata’
I0318 06:15:52.712192 1 postexecutorstep.go:521] Checking for new Labels to apply…
I0318 06:15:52.788789 1 postexecutorstep.go:537] unable to download and extract ‘image_metadata.json’ … continuing
I0318 06:15:53.088398 1 postexecutorstep.go:392] Executing step: report success
I0318 06:15:53.088414 1 postexecutorstep.go:396] Successfully built 192.168.251.98/eureka:latest
I0318 06:15:53.088441 1 docker.go:1048] Removing container “b6c87565f009b76d3413135f4404f038807f1dd1b50d52394a32c3042d392699” …
I0318 06:15:53.103932 1 docker.go:1048] Removing container “b42cea18b5587850935f16a1fdf5999fedbd93fe922618d6fff11c9bca749b03” …
I0318 06:15:53.103860 1 docker.go:1058] Removed container “b6c87565f009b76d3413135f4404f038807f1dd1b50d52394a32c3042d392699”
I0318 06:15:53.124756 1 docker.go:1058] Removed container “b42cea18b5587850935f16a1fdf5999fedbd93fe922618d6fff11c9bca749b03”
I0318 06:15:53.124937 1 docker.go:635] Begin to push image <192.168.251.98/eureka:latest>
I0318 06:15:53.144767 1 docker.go:674] pushing image error : Get https://192.168.251.98/v2/: dial tcp 192.168.251.98:443: connect: connection refused
I0318 06:15:53.144790 1 docker.go:687] retrying in 5s …
I0318 06:15:58.167398 1 docker.go:674] pushing image error : Get https://192.168.251.98/v2/: dial tcp 192.168.251.98:443: connect: connection refused
I0318 06:15:58.167418 1 docker.go:687] retrying in 5s …
I0318 06:16:03.187460 1 docker.go:687] retrying in 5s …
I0318 06:16:03.187440 1 docker.go:674] pushing image error : Get https://192.168.251.98/v2/: dial tcp 192.168.251.98:443: connect: connection refused
I0318 06:16:08.187583 1 docker.go:690] pushing image succeed
I0318 06:16:08.187619 1 cleanup.go:33] Removing temporary directory /tmp/s2i035439427
I0318 06:16:08.187638 1 fs.go:302] Removing directory ‘/tmp/s2i035439427’
E0318 06:16:08.203450 1 errors.go:297] An error occurred: unable to push 192.168.251.98/eureka:latest
I0318 06:16:08.203460 1 errors.go:300] Details: Get https://192.168.251.98/v2/: dial tcp 192.168.251.98:443: connect: connection refused
I0318 06:16:08.203425 1 s2i.go:75] Build failed
E0318 06:16:08.203455 1 errors.go:298] Suggested solution: check image name, or check if username and password provided are corrected
E0318 06:16:08.203467 1 errors.go:302] If the problem persists consult the docs at https://kubesphere.io/docs/v2.1/zh-CN/quick-start/source-to-image/ Open an issue at https://github.com/kubesphere/s2irun/issues providing us with a log from your build using log output level 3.
docker 环境变量文件配置:
[root@node2 anchors]# cat /etc/systemd/system/docker.service.d/docker-options.conf
[Service]
Environment=“DOCKER_OPTS= –insecure-registry=192.168.251.89:5000 –registry-mirror=https://dockerhub.azk8s.cn –data-root=/var/lib/docker –log-opt max-size=10m –log-opt max-file=3 –insecure-registry=192.168.251.98”