- 项目在进行cicd的时候 推送镜像仓库报错
[2019/02/25 09:43:15] The push refers to a repository [XXX.cn/test]
[2019/02/25 09:43:15] 45cae855e526: Preparing
[2019/02/25 09:43:15] 65074d2f7e9b: Preparing
[2019/02/25 09:43:15] daafffeb7800: Preparing
[2019/02/25 09:43:15] a64da82a515a: Preparing
[2019/02/25 09:43:15] 4ad6ee83f9e7: Preparing
[2019/02/25 09:43:15] e71a0b8e5627: Preparing
[2019/02/25 09:43:15] a5a93198a95b: Preparing
[2019/02/25 09:43:15] ff143e5bce0a: Preparing
[2019/02/25 09:43:15] a5a93198a95b: Waiting
[2019/02/25 09:43:15] e71a0b8e5627: Waiting
[2019/02/25 09:43:15] ff143e5bce0a: Waiting
[2019/02/25 09:43:16] 4ad6ee83f9e7: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:16] a64da82a515a: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:16] daafffeb7800: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:16] e71a0b8e5627: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:16] a5a93198a95b: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:16] 65074d2f7e9b: Mounted from rqkg_zhyy/promotion-web
[2019/02/25 09:43:17] ff143e5bce0a: Mounted from fnw/dev-fnos-om-web
[2019/02/25 09:43:21] 45cae855e526: Pushed
[2019/02/25 09:43:21] received unexpected HTTP status: 500 Internal Server Error
[Enn Flow API] 日志读取结束
###
1. 推送的时候 出现了不明的mount日志
2. 最后500超时的情况
- 解决办法
## 将 harbor的地址添加到 insecure-registries 中
[root@slave-20-30 ~]#cat /etc/docker/daemon.json
{
"insecure-registries": ["reg.ming.cn"],
"hosts": ["unix:///var/run/docker.sock"],
"storage-driver": "devicemapper",
"storage-opts": [
"dm.basesize=10G",
"dm.thinpooldev=/dev/mapper/docker-thinpool",
"dm.use_deferred_removal=true",
"dm.use_deferred_deletion=true"
],
"log-driver": "json-file",
"log-opts": {
"max-size": "20m",
"max-file": "10"
},
"live-restore": false
}
## 重启docker