Archived
Private
Public Access
1
0

Updated restart policy for docker containers

This commit is contained in:
2023-03-01 15:47:25 +01:00
parent 5185181714
commit 61905c4ca5

View File

@@ -36,9 +36,13 @@ public sealed class DockerApi : IDockerApi {
}, },
Binds = new List<string> { Binds = new List<string> {
$"{hostVolumePath}:/pb_data" $"{hostVolumePath}:/pb_data"
},
RestartPolicy = new RestartPolicy {
MaximumRetryCount = 3,
Name = RestartPolicyKind.UnlessStopped
} }
}, },
Name = name Name = name,
}); });
return container.ID; return container.ID;
} }