{"id":488,"title":"\u63a8\u9001docker image\u5230docker hub","good":0,"bad":0,"hit":1852,"created_at":"2020-06-10 10:45:45","content":"
\u548cgithub\u7684\u64cd\u4f5c\u5dee\u4e0d\u591a<\/p>
\u767b\u5f55\uff0c\u8f93\u5e10\u53f7\u548c\u5bc6\u7801\uff0c\u7136\u540epush<\/p>
<\/p>
eg:
<\/p>
F:\\windows_linux\\github_hurong_hyperf>docker image list\nREPOSITORY TAG IMAGE ID CREATED SIZE\nregistry.cn-shanghai.aliyuncs.com\/hu-rong\/com hyperf-7.4-v1 a35fe27ee9e3 12 months ago 533MB\n\nF:\\windows_linux\\github_hurong_hyperf>docker tag a35fe27ee9e3 hurong241\/hyperf-7.4-v1\n\nF:\\windows_linux\\github_hurong_hyperf>docker image list\nREPOSITORY TAG IMAGE ID CREATED SIZE\nhurong241\/hyperf-7.4-v1 latest a35fe27ee9e3 12 months ago 533MB\nregistry.cn-shanghai.aliyuncs.com\/hu-rong\/com hyperf-7.4-v1 a35fe27ee9e3 12 months ago 533MB\n\nF:\\windows_linux\\github_hurong_hyperf>docker push hurong241\/hyperf-7.4-v1<\/pre>
<\/p>
<\/p>\u5982\u679c\u62a5\uff1a<\/p>
denied: requested access to the resource is denied<\/p>
\u5982\u679c\u662f\u4ece\u5bb9\u5668\u751f\u6210image,\u5219\u5728\u751f\u6210\u955c\u50cf\u65f6\u8981\u52a0\u4e0a\u81ea\u5df1\u7684dockerhub\u5e10\u53f7\u540d\uff0c\u5982\uff1a<\/p>
docker commit -a "www.hu-rong.com" -m "php7.4-fpm+swoole4.6.3\u6269\u5c55" ece00894b5af hurong241<\/strong>\/php74:swoole4.6.3<\/p>
<\/p>[root@localhost ~]# docker login\nLogin with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https:\/\/hub.docker.com to create one.\nUsername: hurong241\nPassword: \nLogin Succeeded\n[root@localhost ~]# docker push hurong241\/php74:swoole4.6.3<\/pre>
<\/p>
<\/p>"}