Docker安装增加信任内部仓库 (#651)

Docker安装增加信任内部仓库
pull/658/head
有关部门 2019-07-26 15:07:28 +08:00 committed by jmgao
parent 1e66e7e6ef
commit 8278b1e004
4 changed files with 16 additions and 0 deletions

View File

@ -45,6 +45,12 @@ NODE_PORT_RANGE="20000-40000"
# Cluster DNS Domain # Cluster DNS Domain
CLUSTER_DNS_DOMAIN="cluster.local." CLUSTER_DNS_DOMAIN="cluster.local."
# Docker data ROOT
# STORAGE_DIR="/var/lib/docker"
# Docker insecure registry
# INSECURE_REG='["127.0.0.1/8"]'
# -------- Additional Variables (don't change the default value right now)--- # -------- Additional Variables (don't change the default value right now)---
# Binaries Directory # Binaries Directory
bin_dir="/opt/kube/bin" bin_dir="/opt/kube/bin"

View File

@ -49,6 +49,12 @@ NODE_PORT_RANGE="20000-40000"
# Cluster DNS Domain # Cluster DNS Domain
CLUSTER_DNS_DOMAIN="cluster.local." CLUSTER_DNS_DOMAIN="cluster.local."
# Docker data ROOT
# STORAGE_DIR="/var/lib/docker"
# Docker insecure registry
# INSECURE_REG='["127.0.0.1/8"]'
# -------- Additional Variables (don't change the default value right now) --- # -------- Additional Variables (don't change the default value right now) ---
# Binaries Directory # Binaries Directory
bin_dir="/opt/kube/bin" bin_dir="/opt/kube/bin"

View File

@ -16,3 +16,6 @@ ENABLE_MIRROR_REGISTRY: true
# 设置 docker 仓库镜像 # 设置 docker 仓库镜像
REG_MIRRORS: '["https://dockerhub.azk8s.cn", "https://docker.mirrors.ustc.edu.cn"]' REG_MIRRORS: '["https://dockerhub.azk8s.cn", "https://docker.mirrors.ustc.edu.cn"]'
# 信任的HTTP仓库
INSECURE_REG: '["127.0.0.1/8"]'

View File

@ -5,6 +5,7 @@
{% if ENABLE_REMOTE_API %} {% if ENABLE_REMOTE_API %}
"hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"], "hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"],
{% endif %} {% endif %}
"insecure-registries": {{ INSECURE_REG }},
"max-concurrent-downloads": 10, "max-concurrent-downloads": 10,
"log-driver": "{{ LOG_DRIVER }}", "log-driver": "{{ LOG_DRIVER }}",
"log-level": "{{ LOG_LEVEL }}", "log-level": "{{ LOG_LEVEL }}",