docker-ce: add hosts option
authorFlorian Eckert <redacted>
Wed, 29 Jul 2020 04:49:12 +0000 (06:49 +0200)
committerFlorian Eckert <redacted>
Wed, 29 Jul 2020 11:07:07 +0000 (13:07 +0200)
Signed-off-by: Florian Eckert <redacted>
utils/docker-ce/files/dockerd.init
utils/docker-ce/files/etc/config/dockerd

index 659a186bc291f9da14884306761f4474158251c0..b757c27350850c9da289f8e1a4d3a8ba372b377f 100644 (file)
@@ -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"
index 28f04829b415dbed40126e7c471fcf008a31eeee..f436ec6c94a8969c1cb0c336456c20ee5f6a5f30 100644 (file)
@@ -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://<my-docker-mirror-host>"
 #      list registry_mirror "https://hub.docker.com"
git clone https://git.99rst.org/PROJECT