使用代理下载非docker hub的镜像如google cloud private registry
2015-10-26 09:36
736 查看
修改 /etc/default/docker 添加代理
HTTP_PROXY="http://127.0.0.1:8087"
HTTPS_PROXY="https://127.0.0.1:8087"
http_proxy="${HTTP_PROXY}"
https_proxy="${HTTPS_PROXY}"
export HTTP_PROXY
export HTTPS_PROXY
export http_proxy
export https_proxy
修改docker_opts, 添加 --insecure-registry gcr.io
如:
OPTIONS='--selinux-enabled --insecure-registry gcr.io'
gcr.io为私有仓库
HTTP_PROXY="http://127.0.0.1:8087"
HTTPS_PROXY="https://127.0.0.1:8087"
http_proxy="${HTTP_PROXY}"
https_proxy="${HTTPS_PROXY}"
export HTTP_PROXY
export HTTPS_PROXY
export http_proxy
export https_proxy
修改docker_opts, 添加 --insecure-registry gcr.io
如:
OPTIONS='--selinux-enabled --insecure-registry gcr.io'
gcr.io为私有仓库
相关文章推荐
- Docker Remote API 配置
- MacOSX环境用Docker安装gitlab
- Centos7中docker无法从非官方库中pull镜像的解决方法
- 使用Docker模拟ansible集群环境
- 配置docker中免密码SSH
- 配置docker中免密码SSH
- Docker持续化集成和测试
- Docker持续化集成和测试
- Docker 清理命令集锦
- Docker 清理命令集锦
- Docker容器资源管理cgroups功能测试
- 下一代云计算模式:Docker正掀起个性化商业革命
- 10个基于DOCKER的顶尖开发工具
- 使用Docker打包Java/Spring Boot应用
- Linux下安装docker
- centos中使用docker创建mysql容器
- 基于Mesos和Docker的分布式计算平台
- Docker的那些事(1)--什么是Docker和如何迁移
- 在CentOS6.7下安装私有Docker Registry
- DICOM:试玩Docker发布C-STORE SCP服务