fn: docker version check2 (#744)

1) now required docker version is 17.06
2) enable circle ci latest docker install
3) docker driver & agent check minimum version before start
This commit is contained in:
Tolga Ceylan
2018-02-06 16:16:40 -08:00
committed by GitHub
parent 640a47fe55
commit ebc6657071
16 changed files with 1028 additions and 18 deletions

View File

@@ -178,15 +178,8 @@ const (
type Config struct {
Docker string `json:"docker"`
// TODO CPUShares should likely be on a per container basis
CPUShares int64 `json:"cpu_shares"`
}
// for tests
func DefaultConfig() Config {
return Config{
Docker: "unix:///var/run/docker.sock",
CPUShares: 0,
}
CPUShares int64 `json:"cpu_shares"`
ServerVersion string `json:"server_version"`
}
func average(samples []Stat) (Stat, bool) {