mirror of https://github.com/docker/docker-py.git
minor json fixes that caused the docker server to return 500s
This commit is contained in:
parent
5d6271417c
commit
bcd3a64827
|
@ -25,16 +25,16 @@ class Client(requests.Session):
|
||||||
volumes=None, volumes_from=None):
|
volumes=None, volumes_from=None):
|
||||||
return {
|
return {
|
||||||
'Hostname': hostname,
|
'Hostname': hostname,
|
||||||
'PortSpecs': ports,
|
'PortSpecs': [ports],
|
||||||
'User': user,
|
'User': user,
|
||||||
'Tty': tty,
|
'Tty': tty,
|
||||||
'OpenStdin': stdin_open,
|
'OpenStdin': stdin_open,
|
||||||
'Memory': mem_limit,
|
'Memory': mem_limit,
|
||||||
'AttachStdin': 0,
|
'AttachStdin': False,
|
||||||
'AttachStdout': 0,
|
'AttachStdout': False,
|
||||||
'AttachStderr': 0,
|
'AttachStderr': False,
|
||||||
'Env': environment,
|
'Env': environment,
|
||||||
'Cmd': command,
|
'Cmd': [command],
|
||||||
'Dns': dns,
|
'Dns': dns,
|
||||||
'Image': image,
|
'Image': image,
|
||||||
'Volumes': volumes,
|
'Volumes': volumes,
|
||||||
|
|
Loading…
Reference in New Issue