1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-06-06 05:21:55 +00:00
This commit is contained in:
Newnius 2020-04-12 20:56:19 +08:00
parent 4a3f3d7390
commit 5e259bfeb0

View File

@ -191,7 +191,7 @@ class MyHandler(BaseHTTPRequestHandler):
try:
client = docker.from_env()
container = client.containers.get(container_id)
container.stop()
container.stop(timeout=1)
msg = {"code": 0, "error": "Success"}
except Exception as e:
msg = {"code": 1, "error": str(e)}