Subject: [PATCH] Fix race condition between docker and iptables

From: Wolf <[email-masked]>
Date: Tue, 27 Apr 2021 01:49:24 +0200

When the system is booting, the order of docker and iptables was not
specified due to the missing dependency. That could lead to docker
setting up the chains and iptables wiping them clean if the order of
start was 1. docker 2. iptables.

Explicit dependency should make that working correctly.
---
 community/docker/docker.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/docker/docker.initd b/community/docker/docker.initd
index aa35285223..28bec90797 100644
--- a/community/docker/docker.initd
+++ b/community/docker/docker.initd
@@ -19,7 +19,7 @@ rc_ulimit="${DOCKER_ULIMIT:--c unlimited -n 1048576 -u unlimited}"
 retry="${DOCKER_RETRY:-TERM/60/KILL/10}"
 
 depend() {
-	need sysfs cgroups
+	need sysfs cgroups iptables ip6tables
 }
 
 start_pre() {
-- 
2.31.1