mirror of https://github.com/docker/docker-py.git
command param in create_container is optional (for images that come with a predefined default command)
This commit is contained in:
parent
64cdc11b77
commit
8be4c1f0d3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue