qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docker: fix uid maping with podman
@ 2019-09-25 12:09 Tomáš Golembiovský
  2019-09-25 12:12 ` Philippe Mathieu-Daudé
  2019-09-25 23:31 ` no-reply
  0 siblings, 2 replies; 4+ messages in thread
From: Tomáš Golembiovský @ 2019-09-25 12:09 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, Fam Zheng, Alex Bennée,
	qemu-devel
  Cc: Tomáš Golembiovský

Commit 71ebbe09 refactored how uid mapping is performed when invoking
container. It however introduced a bug in the flow when podman is used
caused by wrong variable name.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
 tests/docker/docker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 29613afd48..bc7a470ca2 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -334,7 +334,7 @@ class Docker(object):
             cmd = [ "-u", str(uid) ] + cmd
             # podman requires a bit more fiddling
             if self._command[0] == "podman":
-                argv.insert(0, '--userns=keep-id')
+                cmd.insert(0, '--userns=keep-id')
 
         ret = self._do_check(["run", "--label",
                              "com.qemu.instance.uuid=" + label] + cmd,
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-26  4:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-25 12:09 [PATCH] docker: fix uid maping with podman Tomáš Golembiovský
2019-09-25 12:12 ` Philippe Mathieu-Daudé
2019-09-25 23:31 ` no-reply
2019-09-26  4:12   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).