私有仓库搭建
来源:互联网 发布:淘宝助理初始化卡死 编辑:程序博客网 时间:2024/06/05 01:09
--启动仓库镜像,没有会下载,将仓库地址映射到本地/home/jihuan/registry-conf
sudo docker run -d -p 5000:5000 -v /home/jihuan/registry-conf:/registry-conf -e DOCKER_REGISTRY_CONFIG=/registry-conf/config.yml registry
修改Docker配置文件
vim /etc/default/docker
增加以下一行
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=192.168.2.200:5000"
重启Docker
sudo service docker restart
或者用命令启动
sudo nohup docker --insecure-registry 192.168.2.200:5000 -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock -d &
标记镜像
sudo docker tag imageID 192.168.2.200:5000/ubuntu:1404
上传镜像
sudo docker push 192.168.2.200:5000/ubuntu:1404
搜索镜像
curl http://192.168.2.200:5000/v1/search
下载镜像
sudo docker pull 192.168.2.200:5000/ubuntu:1404
批量上传
wget https://github.com/yeasy/docker_practice/raw/master/_local/push_images.sh
sudo chmod a+x push_images.sh
./push_images.sh ubuntu:latest centos:centos7
sudo docker run -d -p 5000:5000 -v /home/jihuan/registry-conf:/registry-conf -e DOCKER_REGISTRY_CONFIG=/registry-conf/config.yml registry
修改Docker配置文件
vim /etc/default/docker
增加以下一行
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=192.168.2.200:5000"
重启Docker
sudo service docker restart
或者用命令启动
sudo nohup docker --insecure-registry 192.168.2.200:5000 -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock -d &
标记镜像
sudo docker tag imageID 192.168.2.200:5000/ubuntu:1404
上传镜像
sudo docker push 192.168.2.200:5000/ubuntu:1404
搜索镜像
curl http://192.168.2.200:5000/v1/search
下载镜像
sudo docker pull 192.168.2.200:5000/ubuntu:1404
批量上传
wget https://github.com/yeasy/docker_practice/raw/master/_local/push_images.sh
sudo chmod a+x push_images.sh
./push_images.sh ubuntu:latest centos:centos7
0 0
- 私有仓库搭建
- Docker搭建私有仓库
- Docker私有仓库搭建
- 搭建Docker私有仓库
- 搭建docker私有仓库
- Maven 私有仓库搭建
- docker 搭建私有仓库
- 搭建docker私有仓库
- Docker私有仓库搭建
- docker搭建私有仓库
- docker私有仓库搭建
- docker搭建私有仓库
- 搭建Maven私有仓库
- 搭建yum私有仓库
- docker私有仓库搭建
- Git 搭建私有仓库
- Docker私有仓库搭建
- Docker私有仓库搭建
- Php通过gsoap调用c++ websevice
- javascrit等号的转换和相等性
- [Jenkins 实战]关于Jenkins+Git部署的几点注意事项
- 通过feature自动将jar转成bundle
- sql server 一些时间函数
- 私有仓库搭建
- 默认字体
- 语法堂_iOS开发之@(),@[],@{}……
- 未能加载文件或程序集“Microsoft.ReportingServices.UpgradeScripts
- 在API中用log来增加调试内容
- openfire smack消息回执设置,处理掉包问题
- redmine 主菜单显示
- 学车历程
- OpenCV学习一 环境搭建和显示第一张图片