案例:devops工具
1.创建git项目仓库
Git 全局设置
git config --global user.name "蒙仕业"git config --global user.email "mengsy@bwoil.com"创建一个新仓库
git clone http://192.168.102.84:10080/mengsy/devops.gitcd devopstouch README.mdgit add README.mdgit commit -m "add README"git push -u origin master更新仓库文件
[root@gh-jenkins devops]# git add *
[root@gh-jenkins devops]# git commit -m 'delete'
[root@gh-jenkins devops]# git push -u origin master
###push
docker push harbor.meng.com/meta/dev/umi-mo:0.0.1.3
账号:admin
密码:Harbor12345
需要登录所在jenkins或docker镜像,然后登录仓库,才能登录成功
因为构建镜像的时候是使用容器方式,即docker in docker
harbor仓库
显示了已经推送到仓库管理的镜像