mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-11 09:25:00 +00:00
Update container.py
This commit is contained in:
parent
9b70581a67
commit
33b20d3766
|
@ -17,7 +17,9 @@ class Container(Extension):
|
|||
|
||||
def container_run(self, type, id, params, conn):
|
||||
image = params['image']
|
||||
container = client.containers.run(image, detach=True)
|
||||
environment = params['environment']
|
||||
|
||||
container = client.containers.run(image=image, environment=environment, detach=True)
|
||||
container.logs()
|
||||
|
||||
def container_stop(self, type, id, params, conn):
|
||||
|
|
Loading…
Reference in New Issue
Block a user