赞
踩
我们推送镜像到DockerHub时会遇到没有访问资源权限的问题
requested access to the resource is deni
ed
这是因为dockerhub不知道是谁推送的镜像,所以推送不上去。
解决这个问题:
1.检查有没有登录dockerhub
D:\study\ispp-return>docker login
Authenticating with existing credentials...
Login Succeeded
Logging in with your password grants your terminal complete access to your accou
nt.
For better security, log in with a limited-privilege personal access token. Lear
n more at https://docs.docker.com/go/access-tokens/
2.给自己的镜像打tag并推送
docker tag ffcs/springboot_demo 19950805/springboot_demo:01
docker push 19950805/springboot_demo:01
打tag的格式为
docker tag [镜像] [dockerhub的用户名]/[仓库里的镜像名]:[标签]
现在就可以推送了
docker push 19950805/springboot_demo:01
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。