mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 04:43:56 +08:00
Update dockerd.patch
This commit is contained in:
1 parent
62640bad4a
commit
e25b984b59
1 file changed
-23
@@ -37,26 +37,3 @@
|
|||||||
$(INSTALL_DIR) $(1)/opt/docker/
|
$(INSTALL_DIR) $(1)/opt/docker/
|
||||||
|
|
||||||
ifeq ($(CONFIG_DOCKER_CHECK_CONFIG),y)
|
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
|
|
||||||
Reference in new issue
Block a user