add Stop the container after suspend
чомусь деколи суспенд через апі птерика не виключає сам контейнер цей фікс це виправляє
This commit is contained in:
parent
f338c3cc1b
commit
7f9df2a018
@ -131,6 +131,9 @@ def suspend_container():
|
|||||||
|
|
||||||
print(f"Response: {response.text}")
|
print(f"Response: {response.text}")
|
||||||
|
|
||||||
|
# Stop the container
|
||||||
|
subprocess.run(['docker', 'stop', uuid])
|
||||||
|
|
||||||
# End the script if no commands were found
|
# End the script if no commands were found
|
||||||
if not found_commands:
|
if not found_commands:
|
||||||
print("No commands found, exiting.")
|
print("No commands found, exiting.")
|
||||||
|
Loading…
Reference in New Issue
Block a user