add Stop the container after suspend

чомусь деколи суспенд через апі птерика не виключає сам контейнер
цей фікс це виправляє
This commit is contained in:
Markiyan 2024-04-15 13:56:01 +00:00
parent f338c3cc1b
commit 7f9df2a018

View File

@ -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.")