Skip to content

Commit

Permalink
Bump up minimum Docker API to v1.42 (Docker v23) (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted authored Apr 3, 2024
2 parents c62fa1b + a029533 commit dd494ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libdocker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ import (

const (
// https://docs.docker.com/engine/reference/api/docker_remote_api/
// docker version should be at least 1.13.1
MinimumDockerAPIVersion = "1.26.0"
// docker version should be at least 23.0.0.
// https://github.com/moby/moby/commit/304fbf080465e7097a6ab16b1f2a540d02bc7d75
MinimumDockerAPIVersion = "1.42.0"

// Status of a container returned by ListContainers.
StatusRunningPrefix = "Up"
Expand Down
2 changes: 1 addition & 1 deletion libdocker/fake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type FakeDockerClient struct {

const (
// Notice that if someday we also have minimum docker version requirement, this should also be updated.
fakeDockerVersion = "1.13.1"
fakeDockerVersion = "23.0.0"

fakeImageSize = 1024

Expand Down

0 comments on commit dd494ba

Please sign in to comment.