command param in create_container is optional (for images that come with a predefined default command)

This commit is contained in:
shin- 2013-10-16 17:34:46 +02:00
parent 64cdc11b77
commit 8be4c1f0d3
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class Client(requests.Session):
self._raise_for_status(res)
return res.raw
def create_container(self, image, command, hostname=None, user=None,
def create_container(self, image, command=None, hostname=None, user=None,
detach=False, stdin_open=False, tty=False,
mem_limit=0, ports=None, environment=None, dns=None,
volumes=None, volumes_from=None, privileged=False):