aboutsummaryrefslogtreecommitdiff
path: root/tests/docker
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2019-09-04 19:24:51 -0400
committerAlex Bennée <alex.bennee@linaro.org>2019-09-10 09:38:33 +0100
commit63772d5cfda6e1dc1e9f2e17abda8c223fdbdd76 (patch)
treeba4d5334c428151e809ad27d85bd576e2e0bc3fa /tests/docker
parent8480517d4cd33627f7edd3a18829ddd11550a0f3 (diff)
tests/docker: Use --userns=keep-id for podman
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 <jsnow@redhat.com> Message-Id: <20190904232451.26466-1-jsnow@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/docker')
-rwxr-xr-xtests/docker/docker.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index e23209f71e..064026c8af 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)