Logging & Restart Policy
This minor release adds the ability hard control if it shall log or not. In addition it supports RestartPolicy
when doing a Docker run. The supported policies are
- OnFailure
- UnlessStopped
- Always
Thus it is possible to e.g. do a restart always policy when running:
var cmd = _docker.Run("postgres:9.6-alpine", new ContainerCreateParams
{
PortMappings = new[] {"40001:5432"},
RestartPolicy = RestartPolicy.Always,
Environment = new[] {"POSTGRES_PASSWORD=mysecretpassword"}
}, _certificates);