denied: requested accessto the resource is denied
Docker push image: denied: requested accessto the resource is denied
原因:
需要先docke login再docker push
解決:
[root@localhost website]# docker login
Login with your Docker ID to push and pullimages from Docker Hub. If you don‘t have a Docker ID, head over tohttps://hub.docker.com to create one.
Username: lilei123
Password:
Login Succeeded
[root@localhost website]# docker push lilei123/nginx
The push refers to a repository[docker.io/lilei123/nginx]
7f92bc2c1763: Pushed
4348d854faed: Pushed
b10190830b1e: Pushed
f1f90a01ed71: Pushed
7d48d55701f7: Pushed
98bb41f25d33: Pushed
0404d129c384: Pushed
5081cf9eb266: Pushed
f9dfc87a2e75: Pushed
ed9fd767a1ff: Pushed
0fea3c8895d3: Pushed
d626a8ad97a1: Pushed
1.0: digest:sha256:7a33a8bd719ff0fed4f75ba9f0b6e4963c88f6547039a92070ca5ff4ddc4289f size:2828
關註微信公眾號“挨踢學霸”,更多技術姿勢在等你
denied: requested accessto the resource is denied