Skip to content

Logging & Restart Policy

Compare
Choose a tag to compare
@mariotoffia mariotoffia released this 20 Jul 09:21
· 448 commits to master since this release

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

  1. OnFailure
  2. UnlessStopped
  3. 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);

This release is associated with task #49 and #50