Update dockerd.patch

This commit is contained in:
kiddin9 2026-03-20 14:23:56 +08:00 committed by GitHub
parent 62640bad4a
commit e25b984b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,26 +37,3 @@
$(INSTALL_DIR) $(1)/opt/docker/
ifeq ($(CONFIG_DOCKER_CHECK_CONFIG),y)
--- a/dockerd/files/dockerd.init
+++ b/dockerd/files/dockerd.init
@@ -36,6 +36,9 @@ uciadd() {
uci_quiet set firewall.@zone[-1].input="ACCEPT"
uci_quiet set firewall.@zone[-1].output="ACCEPT"
uci_quiet set firewall.@zone[-1].forward="ACCEPT"
+ uci_quiet set firewall.dockerd=forwarding
+ uci_quiet set firewall.@forwarding[-1].src="${zone}"
+ uci_quiet set firewall.@forwarding[-1].dest='wan'
uci_quiet commit firewall
fi
--- a/dockerd/files/etc/config/dockerd
+++ b/dockerd/files/etc/config/dockerd
@@ -42,5 +42,5 @@ config proxies 'proxies'
# then docker restarted to load in new changes.
config firewall 'firewall'
option device 'docker0'
- list blocked_interfaces 'wan'
+# list blocked_interfaces 'wan'
# option extra_iptables_args '--match conntrack ! --ctstate RELATED,ESTABLISHED' # allow outbound connections