mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
added -p parameter for healing
This commit is contained in:
parent
5ab43653bd
commit
b064aab289
@ -64,7 +64,8 @@ for filtered_failed_docker_compose_repository in filtered_failed_docker_compose_
|
|||||||
|
|
||||||
if compose_file_path:
|
if compose_file_path:
|
||||||
print("Restarting unhealthy container in:", compose_file_path)
|
print("Restarting unhealthy container in:", compose_file_path)
|
||||||
print_bash(f'cd {os.path.dirname(compose_file_path)} && docker-compose restart')
|
# Propably the cd is not necessary. But in rare cases it could be. To lazzy to test it now.
|
||||||
|
print_bash(f'cd {os.path.dirname(compose_file_path)} && docker-compose -p "{filtered_failed_docker_compose_repository}" restart')
|
||||||
else:
|
else:
|
||||||
print("Error: Docker Compose file not found for:", filtered_failed_docker_compose_repository)
|
print("Error: Docker Compose file not found for:", filtered_failed_docker_compose_repository)
|
||||||
errors += 1
|
errors += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user