fix: 🐛 restart only on failure
This commit is contained in:
parent
56c9f14ea8
commit
6e1fd52837
@ -94,7 +94,7 @@ def create_or_update_container(
|
|||||||
labels={"engine": "pilotwings", "owner": owner or credentials.username},
|
labels={"engine": "pilotwings", "owner": owner or credentials.username},
|
||||||
name=container_name,
|
name=container_name,
|
||||||
network="pilotwings",
|
network="pilotwings",
|
||||||
restart_policy={"Name": "always"},
|
restart_policy={"Name": "on-failure"},
|
||||||
)
|
)
|
||||||
|
|
||||||
client.images.prune({"dangling": True})
|
client.images.prune({"dangling": True})
|
||||||
|
Loading…
Reference in New Issue
Block a user