mirror of https://github.com/easzlab/kubeasz.git
添加开启docker远程API
parent
b97f0cf910
commit
917e9734fc
|
@ -12,3 +12,6 @@ LOG_MAX_FILE: 3
|
|||
|
||||
# docker容器存储目录
|
||||
STORAGE_DIR: "/var/lib/docker"
|
||||
|
||||
# 开启Restful API
|
||||
ENABLE_REMOTE_API: true
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue