From 47f36b361486bae31353b7de996d3f59fc646590 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 19 Jan 2024 16:24:26 -0600 Subject: [PATCH] nsenter: Fix syntax for BusyBox The `-a`/`--all` argument for `nsenter` is present in the *util-linux* version of `nsenter`, but not the BusyBox version. The latter is present in Alpine, so we need to adjust our wrapper script to use compatible syntax, which means explicitly listing the namespaces we want to enter. --- nsenter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsenter.sh b/nsenter.sh index 992604e..5f20843 100755 --- a/nsenter.sh +++ b/nsenter.sh @@ -1,3 +1,3 @@ #!/bin/sh -exec nsenter -a -t 1 "${0##*/}" "$@" +exec nsenter -m -u -i -n -p -U -t 1 "${0##*/}" "$@"