Add user argument to exec_create documentation.

This commit is contained in:
Stephen Newey 2015-06-30 13:41:22 +01:00
parent 6a5a256509
commit a12818a8a8
2 changed files with 2 additions and 1 deletions

View File

@ -521,7 +521,7 @@ class Client(requests.Session):
return self.exec_start(create_res, detach, tty, stream)
def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False,
user=None, privileged=False):
privileged=False, user=None):
if utils.compare_version('1.15', self._version) < 0:
raise errors.InvalidVersion('Exec is not supported in API < 1.15')
if privileged and utils.compare_version('1.19', self._version) < 0:

View File

@ -282,6 +282,7 @@ Sets up an exec instance in a running container.
* stdout (bool): Attach to stdout of the exec command if true. Default: True
* stderr (bool): Attach to stderr of the exec command if true. Default: True
* tty (bool): Allocate a pseudo-TTY. Default: False
* user (str): User to execute command as. Default: root
**Returns** (dict): A dictionary with an exec 'Id' key.