mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 10:31:38 +08:00
Update dockerd.patch
This commit is contained in:
parent
62640bad4a
commit
e25b984b59
23
.github/diy/patches/dockerd.patch
vendored
23
.github/diy/patches/dockerd.patch
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user