添加开启docker远程API

pull/453/head
lusyoe 2019-01-18 13:36:48 +00:00 committed by jmgao
parent b97f0cf910
commit 917e9734fc
2 changed files with 8 additions and 0 deletions

View File

@ -12,3 +12,6 @@ LOG_MAX_FILE: 3
# docker容器存储目录
STORAGE_DIR: "/var/lib/docker"
# 开启Restful API
ENABLE_REMOTE_API: true

View File

@ -8,4 +8,9 @@
"max-file": "{{ LOG_MAX_FILE }}"
},
"data-root": "{{ STORAGE_DIR }}"
{% if ENABLE_REMOTE_API %}
, "hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"]
{% endif %}
}