fix: 🐛 restart only on failure

This commit is contained in:
Michel Roux 2024-11-09 12:52:18 +01:00
parent 56c9f14ea8
commit 6e1fd52837

View File

@ -94,7 +94,7 @@ def create_or_update_container(
labels={"engine": "pilotwings", "owner": owner or credentials.username},
name=container_name,
network="pilotwings",
restart_policy={"Name": "always"},
restart_policy={"Name": "on-failure"},
)
client.images.prune({"dangling": True})