Browse Source

docker-ce: add hosts option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
5136421254
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      utils/docker-ce/files/dockerd.init
  2. +1
    -0
      utils/docker-ce/files/etc/config/dockerd

+ 3
- 0
utils/docker-ce/files/dockerd.init View 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"


+ 1
- 0
utils/docker-ce/files/etc/config/dockerd View 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"

Loading…
Cancel
Save