diff --git a/x11docker b/x11docker
index a280da65..80dde42f 100755
--- a/x11docker
+++ b/x11docker
@@ -7181,7 +7181,11 @@ $(rmcr < "$Containerlogfile" | uniq )"
       [ "$Remountcgroup" = "yes" ] && {
         debugnote "start_container(): Remounting /sys/fs/cgroup to :rw with nsenter"
         # Compare https://github.com/mviereck/x11docker/issues/349
-        Remountcommand="$Backendbin run --rm --user root --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --pid=container:$Containerid -- $Imagename"
+        Remountcommand="$Backendbin run --rm --user root"
+        Remountcommand="$Remountcommand --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --security-opt apparmor=unconfined"
+        Remountcommand="$Remountcommand --pid=container:$Containerid"
+        Remountcommand="$Remountcommand --entrypoint /usr/bin/env"
+        Remountcommand="$Remountcommand -- $Imagename"
         Remountcommand="$Remountcommand nsenter -t 1 -m -C -p /bin/sh -c '"
         Remountcommand="$Remountcommand         set -x ; "
         Remountcommand="$Remountcommand         mount -v -o remount,rw /sys/fs/cgroup/ && "