migrate/testing
Sebastiaan van Stijn d5960ade4a Docker: restore "from env" behavior, and perform API version negotiation (#270)
* NewDockerContainer: restore "from env" behavior

commit c31948caeb replaced the deprecated
`dockerclient.NewEnvClient` with `dockerclient.NewClientWithOpts`, but
did not add the `FromEnv` option to keep  the old behavior.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* NewDockerContainer: use API version negotiation

This helps in situations where the daemon is older than
the API client. API version negotiation checks the maximum
supported API version by the daemon, and downgrades to that
API version if needed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-20 08:42:07 -07:00
..
docker.go Docker: restore "from env" behavior, and perform API version negotiation (#270) 2019-08-20 08:42:07 -07:00
testing.go Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
testing_test.go Update golangci-lint config and implore contributors to use it 2019-03-28 18:55:12 -07:00