[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 03/45] tests/docker: Use --userns=keep-id for podman
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 03/45] tests/docker: Use --userns=keep-id for podman |
Date: |
Tue, 10 Sep 2019 09:43:07 +0100 |
From: John Snow <address@hidden>
The workaround that attempts to accomplish the same result as --userns=keep-id
does not appear to work well with UIDs much above 1000 (like mine, which is
above 20000.)
Since we have official support for this "trick" now, use the supported method.
Signed-off-by: John Snow <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index e23209f71ee..064026c8af8 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -369,9 +369,7 @@ class RunCommand(SubCommand):
argv = [ "-u", str(uid) ] + argv
docker = Docker()
if docker._command[0] == "podman":
- argv = [ "--uidmap", "%d:0:1" % uid,
- "--uidmap", "0:1:%d" % uid,
- "--uidmap", "%d:%d:64536" % (uid + 1, uid + 1)] + argv
+ argv.insert(0, '--userns=keep-id')
return Docker().run(argv, args.keep, quiet=args.quiet)
--
2.20.1
- [Qemu-devel] [PULL 00/45] testing updates (fixes, upgrades, caching), Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 02/45] configure: clean-up container cross compile detect, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 01/45] hw/misc: Mark most objects as "common" code to speed up compilation a litte bit, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 05/45] tests/docker: handle missing encoding keyword for subprocess.check_output, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 06/45] tests/docker: fix final missing .encode when parsing solibs, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 10/45] tests/tcg: add .gitignore for in source builds, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 03/45] tests/docker: Use --userns=keep-id for podman,
Alex Bennée <=
- [Qemu-devel] [PULL 04/45] tests/docker: fix "cc" command to work with podman, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 16/45] tests/docker: move our Alpha cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 07/45] tests/tcg: use EXTRA_CFLAGS everywhere, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 13/45] tests/docker: add Buster to DOCKER_PARTIAL_IMAGES, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 18/45] tests/docker: move our m68k cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 08/45] tests/tcg: cleanup Makefile inclusions, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 15/45] tests/docker: move our powerpc cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 14/45] tests/docker: move our arm64 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 09/45] tests/tcg: move configuration to a sub-shell script, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 21/45] tests/docker: move our mips64 cross compile to Buster, Alex Bennée, 2019/09/10