We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33acb9d commit 09defa6Copy full SHA for 09defa6
docker/utils/utils.py
@@ -715,7 +715,7 @@ def create_container_config(
715
'Hostname': hostname,
716
'Domainname': domainname,
717
'ExposedPorts': ports,
718
- 'User': user,
+ 'User': '{0}'.format(user) if user else None,
719
'Tty': tty,
720
'OpenStdin': stdin_open,
721
'StdinOnce': stdin_once,
tests/integration_test.py
@@ -1624,3 +1624,6 @@ def test_649(self):
1624
ctnr = self.client.create_container('busybox', ['sleep', '2'])
1625
self.client.start(ctnr)
1626
self.client.stop(ctnr)
1627
+
1628
+ def test_715(self):
1629
+ self.client.create_container('busybox', 'true', user=1000)
0 commit comments