(aws_ecr_assets): DockerImageAsset cache_from not compatible with Docker < V23 #27752
Labels
@aws-cdk/aws-ecr-assets
Related to AWS CDK Docker Image Assets
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
In
aws-cdk=2.83.0
, the--cache-from
option in DockerImageAsset is generated in an incorrect format for Docker versions below v23. This conflicts with the default CodeBuild image and the available options in LinuxBuildImage, all using Docker v20, rendering the argument incompatible. Upgrading to versionaws-cdk=2.103.1
resolves the issue as the default CodeBuild image shifts to the latest version using Docker v23.Expected Behavior
As I understand for docker versions < 23.0 the argument should be:
Note:
Current Behavior
--cache-from
arguments passed this way does not work.Logs:
Reproduction Steps
I can provide a small example or a repository if needed for further clarification.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.83.0
Framework Version
No response
Node.js Version
v18.18.2
OS
mac
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: