您的位置:首页 > 运维架构 > Docker

使用代理下载非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为私有仓库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: