Habor仓库:阿里云Ubuntu18(阿里云安装Habor有很多教程,很容易搭建起来)
docker:Ubuntu16虚拟机
1.保证启动habor
2.虚拟机进入daemon.json文件增加habor地址(不然会拒绝http访问)
增加 insecure-registries
{ "registry-mirrors": ["https://lqbkkmob.mirror.aliyuncs.com"], "insecure-registries": ["xx.xx.xx.xx:xx","xx.xx.xx.xx:xx"]}3.docker login
docker login xx.xx.xx.xx:xx首次登陆需要Habor的密码,在配置文件里可以找到默认用户为admin
4.拉取镜像命令可以直接从habor仓库中复制下来,也可以自己输入
docker pull xx.xx.xx.xx/testhadoop/hadoop0:latest5.向仓库推送镜像需要先打tag,然后push
docker tag 本地镜像名 地址/仓库/推到仓库中镜像名
docker push 地址/仓库/推到仓库中镜像名
可以通过浏览器登陆xx.xx.xx.xx:xx查看镜像仓库信息
快三最准高手教学op0:latest5.向仓库推送镜像需要先打tag,然后push
docker tag 本地镜像名 地址/仓库/推到仓库中镜像名
docker push 地址/仓库/推到仓库中镜像名
可以通过浏览器登陆xx.xx.xx.xx:xx查看镜像仓库信息