推送docker image到docker hub
首页->学习资料->微服务治理->docker 关键词: 发布时间:2020-06-10 10:45:45 浏览次数:1904

和github的操作差不多

登录,输帐号和密码,然后push


eg:

F:\windows_linux\github_hurong_hyperf>docker image list
REPOSITORY                                      TAG                               IMAGE ID       CREATED         SIZE
registry.cn-shanghai.aliyuncs.com/hu-rong/com   hyperf-7.4-v1                     a35fe27ee9e3   12 months ago   533MB

F:\windows_linux\github_hurong_hyperf>docker tag a35fe27ee9e3 hurong241/hyperf-7.4-v1

F:\windows_linux\github_hurong_hyperf>docker image list
REPOSITORY                                      TAG                               IMAGE ID       CREATED         SIZE
hurong241/hyperf-7.4-v1                         latest                            a35fe27ee9e3   12 months ago   533MB
registry.cn-shanghai.aliyuncs.com/hu-rong/com   hyperf-7.4-v1                     a35fe27ee9e3   12 months ago   533MB

F:\windows_linux\github_hurong_hyperf>docker push hurong241/hyperf-7.4-v1



如果报:

denied: requested access to the resource is denied

如果是从容器生成image,则在生成镜像时要加上自己的dockerhub帐号名,如:

docker commit -a "www.hu-rong.com" -m "php7.4-fpm+swoole4.6.3扩展" ece00894b5af hurong241/php74:swoole4.6.3


[root@localhost ~]# docker login
Login 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.
Username: hurong241
Password: 
Login Succeeded
[root@localhost ~]# docker push hurong241/php74:swoole4.6.3



赞:(0)
踩:(0)
相关文章
docker容器中开启php扩展,制成新镜
docker容器中安装扩展后制成新镜像
如何在docker容器外执行php artisa
docker容器如何执行composer insta
docker容器内无法上网ping不通外网
将docker中的文件拷贝到docker外
docker中nginx可以访问html无法访
docker容器中安装amqp扩展
docker安装及入门教程
centos7上安装docker
热门文章
win7中将文件拷贝到虚拟机linux下
phpexcel设置行高及列宽,背景颜色,
rabbitmq无法启动
intellij idea不显示git push按钮
php7中使用mongodb的aggregate进行
laravel页面静态化的方法
centos7.4 64位下swoole安装及配置
navicate连接mycat报1184错误
curl设置超时不起作用(CURLOPT_TIM
devops-jenkins容器为pending状态
好评文章
phpexcel设置行高及列宽,背景颜色,
php7中使用mongodb的aggregate进行
intellij idea打开文件所在文件夹
windows下使用MongoDB Compass Com
win7中将文件拷贝到虚拟机linux下
laravel 中悲观锁 & 乐观锁的使用
单点登录sso原理及php实现方式及de
navicate连接mycat报1184错误
rabbitmq无法启动
laravel整合dingo/api方法步骤:jwt
标签
rabbitmq mysql备份 elasticsearch golang swoole
我的项目
【github】www.github.com/hurong241
【码云】gitee.com/hu_rong/projects
【docker hub】hub.docker.com/repositories/hurong241
【packagist】packagist.org/users/hurong241/packages
站点信息
建站时间:2011年
文章数:623篇
浏览数:1357698
粤ICP备18028092号-1  微信:hurong241