docker push node_service_js
The push refers to repository [docker.io/library/node_service_js]
f33895d2c5ce: Preparing
f06a1a04f898: Preparing
f156c8007fd8: Preparing
0ecfa879a967: Preparing
8c825a971eaf: Preparing
bf769027dbbd: Waiting
f3693db46abb: Waiting
bb6d734b467e: Waiting
5f349fdc9028: Waiting
2c833f307fd8: Waiting
denied: requested access to the resource is denied

docker login 后,提交自己本地的镜像到dockerhup, 提示这个错误

docker build -t dockerhupxin/node_server_js .

有一点要注意,就是在生成docker image 时,一定要带上自己的dockerhup用户名,再斜杠镜像名称

# docker push dockerhupxin/node_server_js
The push refers to repository [docker.io/dockerhupxin/node_server_js]
f33895d2c5ce: Pushed
f06a1a04f898: Pushed
f156c8007fd8: Pushed
0ecfa879a967: Pushing  17.81MB/56.56MB
8c825a971eaf: Pushed
bf769027dbbd: Pushed
f3693db46abb: Pushing   31.8MB/320.1MB
bb6d734b467e: Pushing  15.32MB/123.6MB
5f349fdc9028: Pushing  12.77MB/41.24MB
2c833f307fd8: Pushing  9.679MB/126.8MB

已经能正常上传了