mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-12-13 05:26:43 +00:00
update
This commit is contained in:
2
agent.py
2
agent.py
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user