Update docker-py

Brought in changes from https://github.com/dotcloud/docker-py/pull/145
This commit is contained in:
Aanand Prasad 2014-01-20 18:09:25 +00:00
parent 405079f744
commit 084db337a0
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class Client(requests.Session):
attach_stdin = False attach_stdin = False
attach_stdout = False attach_stdout = False
attach_stderr = False attach_stderr = False
stdin_once = False
if not detach: if not detach:
attach_stdout = True attach_stdout = True
@ -159,6 +160,7 @@ class Client(requests.Session):
if stdin_open: if stdin_open:
attach_stdin = True attach_stdin = True
stdin_once = True
return { return {
'Hostname': hostname, 'Hostname': hostname,
@ -166,6 +168,7 @@ class Client(requests.Session):
'User': user, 'User': user,
'Tty': tty, 'Tty': tty,
'OpenStdin': stdin_open, 'OpenStdin': stdin_open,
'StdinOnce': stdin_once,
'Memory': mem_limit, 'Memory': mem_limit,
'AttachStdin': attach_stdin, 'AttachStdin': attach_stdin,
'AttachStdout': attach_stdout, 'AttachStdout': attach_stdout,