dockerd: made registry_mirrors and hosts omittable

* Moved logic out of config writing
* Made default config only specify OpenWrt dictated defaults
  Otherwise, docker defaults can be assumed

Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
This commit is contained in:
Gerard Ryan
2021-01-25 17:46:35 +10:00
parent f12f31cd10
commit 348bcb6e68
2 changed files with 17 additions and 13 deletions

View File

@@ -8,9 +8,9 @@ config globals 'globals'
# option alt_config_file '/etc/docker/daemon.json'
option data_root '/opt/docker/'
option log_level 'warn'
list hosts 'unix:///var/run/docker.sock'
option bip '172.18.0.1/24'
# option iptables '0'
option iptables '1'
# list hosts 'unix:///var/run/docker.sock'
# option bip '172.18.0.1/24'
# list registry_mirrors 'https://<my-docker-mirror-host>'
# list registry_mirrors 'https://hub.docker.com'