docker: add buildkit & experimental support
Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
parent
994670cb79
commit
c9ba5a8b3b
@ -193,6 +193,8 @@ process_config() {
|
|||||||
config_get https_proxy proxies https_proxy "${https_proxy}"
|
config_get https_proxy proxies https_proxy "${https_proxy}"
|
||||||
config_get no_proxy proxies no_proxy "${no_proxy}"
|
config_get no_proxy proxies no_proxy "${no_proxy}"
|
||||||
config_get storage_driver globals storage_driver ""
|
config_get storage_driver globals storage_driver ""
|
||||||
|
config_get buildkit globals buildkit "0"
|
||||||
|
config_get experimental globals experimental "0"
|
||||||
|
|
||||||
. /usr/share/libubox/jshn.sh
|
. /usr/share/libubox/jshn.sh
|
||||||
json_init
|
json_init
|
||||||
@ -200,6 +202,12 @@ process_config() {
|
|||||||
json_add_string "log-level" "${log_level}"
|
json_add_string "log-level" "${log_level}"
|
||||||
json_add_boolean "iptables" "${iptables}"
|
json_add_boolean "iptables" "${iptables}"
|
||||||
json_add_boolean "ip6tables" "${ip6tables}"
|
json_add_boolean "ip6tables" "${ip6tables}"
|
||||||
|
[ "${buildkit}" = "1" ] && {
|
||||||
|
json_add_object 'features'
|
||||||
|
json_add_boolean "buildkit" "${buildkit}"
|
||||||
|
json_close_object
|
||||||
|
}
|
||||||
|
[ "${experimental}" = "1" ] && json_add_boolean "experimental" "${experimental}"
|
||||||
[ -z "${log_driver}" ] || json_add_string "log-driver" "${log_driver}"
|
[ -z "${log_driver}" ] || json_add_string "log-driver" "${log_driver}"
|
||||||
[ -z "${bip}" ] || json_add_string "bip" "${bip}"
|
[ -z "${bip}" ] || json_add_string "bip" "${bip}"
|
||||||
[ -z "${registry_mirrors}" ] || json_add_array "registry-mirrors"
|
[ -z "${registry_mirrors}" ] || json_add_array "registry-mirrors"
|
||||||
|
@ -20,6 +20,8 @@ config globals 'globals'
|
|||||||
# list dns '172.17.0.1'
|
# list dns '172.17.0.1'
|
||||||
# list registry_mirrors 'https://<my-docker-mirror-host>'
|
# list registry_mirrors 'https://<my-docker-mirror-host>'
|
||||||
# list registry_mirrors 'https://hub.docker.com'
|
# list registry_mirrors 'https://hub.docker.com'
|
||||||
|
option buildkit '0'
|
||||||
|
option experimental '0'
|
||||||
|
|
||||||
# If your organization uses a proxy server to connect to the internet, you may need to configure the proxy.
|
# If your organization uses a proxy server to connect to the internet, you may need to configure the proxy.
|
||||||
# See https://docs.docker.com/engine/daemon/proxy/ for more details
|
# See https://docs.docker.com/engine/daemon/proxy/ for more details
|
||||||
|
Loading…
x
Reference in New Issue
Block a user