From 513642125484358014d1a003696158fd4c8ad5cb Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 29 Jul 2020 06:49:12 +0200 Subject: [PATCH] docker-ce: add hosts option Signed-off-by: Florian Eckert --- utils/docker-ce/files/dockerd.init | 3 +++ utils/docker-ce/files/etc/config/dockerd | 1 + 2 files changed, 4 insertions(+) diff --git a/utils/docker-ce/files/dockerd.init b/utils/docker-ce/files/dockerd.init index 659a186bc..b757c2735 100644 --- a/utils/docker-ce/files/dockerd.init +++ b/utils/docker-ce/files/dockerd.init @@ -122,6 +122,9 @@ process_config() { json_add_array "registry-mirrors" config_list_foreach globals registry_mirror json_add_array_string json_close_array + json_add_array "hosts" + config_list_foreach globals hosts json_add_array_string + json_close_array mkdir -p /tmp/dockerd json_dump > "$DOCKERD_CONF" diff --git a/utils/docker-ce/files/etc/config/dockerd b/utils/docker-ce/files/etc/config/dockerd index 28f04829b..f436ec6c9 100644 --- a/utils/docker-ce/files/etc/config/dockerd +++ b/utils/docker-ce/files/etc/config/dockerd @@ -3,5 +3,6 @@ config globals 'globals' # option alt_config_file "/etc/docker/daemon.json" option data_root "/opt/docker/" option log_level "warn" + option hosts "unix://var/run/docker.sock" # list registry_mirror "https://" # list registry_mirror "https://hub.docker.com"