Skip to content

Commit e1f93d9

Browse files
committed
Merge branch 'privilege' of https://github.com/tonicbupt/docker-py into tonicbupt-privilege
2 parents d600073 + 51dac05 commit e1f93d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ def execute(self, container, cmd, detach=False, stdout=True, stderr=True,
531531

532532
return self.exec_start(create_res, detach, tty, stream)
533533

534-
def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False):
534+
def exec_create(self, container, cmd, stdout=True,
535+
stderr=True, tty=False, privileged=False):
535536
if utils.compare_version('1.15', self._version) < 0:
536537
raise errors.InvalidVersion('Exec is not supported in API < 1.15')
537538
if isinstance(container, dict):
@@ -542,7 +543,7 @@ def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False):
542543
data = {
543544
'Container': container,
544545
'User': '',
545-
'Privileged': False,
546+
'Privileged': privileged,
546547
'Tty': tty,
547548
'AttachStdin': False,
548549
'AttachStdout': stdout,

0 commit comments

Comments
 (0)