Updated restart policy for docker containers
This commit is contained in:
@@ -36,9 +36,13 @@ public sealed class DockerApi : IDockerApi {
|
||||
},
|
||||
Binds = new List<string> {
|
||||
$"{hostVolumePath}:/pb_data"
|
||||
},
|
||||
RestartPolicy = new RestartPolicy {
|
||||
MaximumRetryCount = 3,
|
||||
Name = RestartPolicyKind.UnlessStopped
|
||||
}
|
||||
},
|
||||
Name = name
|
||||
Name = name,
|
||||
});
|
||||
return container.ID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user