~alpine/aports

Fix race condition between docker and iptables v1 SUPERSEDED

Wolf: 1
 Fix race condition between docker and iptables

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3499/mbox | git am -3
Learn more about email & git

[PATCH] Fix race condition between docker and iptables Export this patch

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