使用push时遇到的一些坑
hosts相关
问题1:远程与本地经常发生混淆
$ docker login example.com:5000
Username: testuser
Password:
Error response from daemon: Get "https://example.com:5000/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)问题2:并未push到本地仓库
$ docker push local-registry/hello:2
The push refers to repository [docker.io/local-registry/hello]
aeccf26589a7: Preparing
f640be0d5aad: Preparing
aa4330046b37: Preparing
ad10b481abe7: Preparing
69715584ec78: Preparing
denied: requested access to the resource is denieddocker的insecure-registries配置相关
Last updated