Docker推送镜像错误

1.The push refers to repository [192.168.1.123/cst/cst-ump-handle-copyk8s]
Get http://192.168.1.123/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

需要看docker的配置文件deamon.json里有没有将192.168.1.123加到insecure-registries里

{
        "insecure-registries": ["120.122.110.11","120.122.110.11:80"],
        "registry-mirrors": [
                "http://hub-mirror.c.163.com"
        ],
        "log-driver":"json-file",
    "log-opts":{
        "max-size" :"50m","max-file":"1"
    }
}

2.The push refers to repository [120.122.131.11:7118/cst/cst-ump-handle-copyk8s]
66bf24f0a2ca: Preparing 
b6452f8829bf: Preparing 
aede438bd5c7: Preparing 
e5078685df1f: Preparing 
2c883d774566: Preparing 
1baca99547df: Waiting 
038b39bb414e: Waiting 
b541d28bf3b4: Waiting 
unauthorized: unauthorized to access repository: cst/cst-ump-handle-copyk8s, action: push: unauthorized to access repository: cst/cst-ump-handle-copyk8s, action: push

这种是因为没有登录,需要先登录,

 docker login -u admin -p 12345  http://120.122.131.11:7118/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值