1. http协议的仓库docker login不上,更改/etc/docker/daemon.json,加一个镜像仓库地址
http: server gave HTTP response to HTTPS client 分析一下这个问题如何解决中文告诉我详细的解决方案-CSDN博客
2. Error response from daemon: login attempt to http://10.23.197.21:90/v2/ failed with status: 502 Bad Gateway
原因:重启docker,harbor由部分容器未启动成功,页面登陆显示“核心功能未启用”,重启一些失败的容器即可登陆成功
[root@lgb harbor]# docker ps -a | grep har
4693ccbc2339 goharbor/harbor-jobservice:v2.4.3 "/harbor/entrypoint.…" 3 weeks ago Up 10 seconds (health: starting) harbor-jobservice
35e210329cb3 goharbor/nginx-photon:v2.4.3 "nginx -g 'daemon of…" 3 weeks ago Up 7 minutes (healthy) 0.0.0.0:90->8080/tcp, :::90->8080/tcp nginx
a546fa60238d goharbor/harbor-core:v2.4.3 "/harbor/entrypoint.…" 3 weeks ago Up 44 seconds (health: starting) harbor-core
a075f81d34bc goharbor/harbor-portal:v2.4.3 "nginx -g 'daemon of…" 3 weeks ago Up 7 minutes (healthy) harbor-portal
46b334a4d5f4 goharbor/registry-photon:v2.4.3 "/home/harbor/entryp…" 3 weeks ago Up 7 minutes (healthy) registry
c34511ab2368 goharbor/harbor-db:v2.4.3 "/docker-entrypoint.…" 3 weeks ago Up 7 minutes (healthy) harbor-db
3eff6a5d2a1a goharbor/redis-photon:v2.4.3 "redis-server /etc/r…" 3 weeks ago Exited (128) 12 minutes ago redis
f25dbe9b5e8c goharbor/harbor-registryctl:v2.4.3 "/home/harbor/start.…" 3 weeks ago Up 7 minutes (healthy) registryctl
1845cdc1aae7 goharbor/harbor-log:v2.4.3 "/bin/sh -c /usr/loc…" 3 weeks ago Up 7 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log
[root@lgb harbor]# docker restart 3eff6a5d2a1a a546fa60238d 4693ccbc2339
3eff6a5d2a1a
a546fa60238d
4693ccbc2339
[root@lgb harbor]# docker login 10.23.197.21:90
Username: admin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
3.权限不足
denied: requested access to the resource is denied
命令打错了
执行docker push时报错denied: requested access to the resource is denied-CSDN博客
正确打包命令
#新建一个dev项目
docker tag python:2.7 harbor.xxx.com/dev/python:2.7
docker push harbor.xxx.com/dev/python:2.7
[root@lgb harbor]# docker tag boot-app:2 10.23.197.21:90/dev/boot-app:2
[root@lgb harbor]# docker images | grep boot
10.23.197.21:90/dev/boot-app 2 b822a844911f 25 hours ago 528MB
boot-app 2 b822a844911f 25 hours ago 528MB
[root@lgb harbor]# docker push 10.23.197.21:90/dev/boot-app:2
The push refers to repository [10.23.197.21:90/dev/boot-app]
40dd7c7e0018: Pushed
9abd88567f21: Pushed
dd0bd339bafa: Pushed
174f56854903: Pushed
2: digest: sha256:1b2205f85875a0b25ddc230c97889d4c8eb9a75f1cf6b2eb344a40a5ee3dd7d2 size: 1161