minor json fixes that caused the docker server to return 500s

This commit is contained in:
Cove Schneider 2013-05-27 09:31:41 -07:00
parent 5d6271417c
commit bcd3a64827
1 changed files with 5 additions and 5 deletions

View File

@ -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,