Bump github.com/docker/docker from 20.10.24+incompatible to 24.0.6+incompatible in /agent and /ecs-agent #3907
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Currently the dependabot PR #3895 to update the docker version from 20.10.24+incompatible to 24.0.6+incompatible in /agent is blocked due to backward incompatible dependancy changes in
github.com/docker/docker/api/types/container/
andgithub.com/docker/docker/api/types/volume/
. This is causing the static check and linux unit test failures in the PR #3895. This change includes some refactoring to fix the compatabilty and also upgrading the docker version in /ecs-agent module to 24.0.6+incompatible to maintain the same docker versions in both/agent
and/ecs-agent
(See #3768).Implementation details
Refactoring the type
container.ContainerCreateCreatedBody
tocontainer.CreateResponse
inRefactoring the type from
volume.VolumeCreateBody
tovolume.CreateOptions
inFunction signature of
ContainerStop()
ingithub.com/docker/docker/client
changed fromto
so updated the following files to reflect the change
Updated package name from
types
tovolume
in few places as the filegithub.com/docker/docker/api/types/volume.go
was moved to new /volume folder (github.com/docker/docker/api/types/volume/volume.go
).Scan() is now a member function of
LocalRegistry
- plugins: Move SpecPaths into LocalRegistry moby/moby#44789, updated theScan()
method inagent/utils/mobypkgwrapper/plugins.go
based on these upstream changes.Testing
New tests cover the changes: yes
Functional tests ran successfully on an AMI with an older docker version (19.03.13) and containerd version(1.4.13)
Description for the changelog
Enhancement: Update the docker version from 20.10.24+incompatible to 24.0.6+incompatible in
/agent
and/ecs-agent
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.