aws-ecr-assets: DockerImageAsset is unusable with Docker Buildkit builder, which is the default in recent Docker for Mac #21990
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
BuildKit is the default builder on Docker for Mac and
DockerImageAsset
doesn't appear to set an output, so builds will fail as they aren't saved to the local docker registry (only build cache by default).Expected Behavior
DockerImageAsset should either configure
output=docker
or correctly use Buildkit to push to the ECR Repository when Buildkite is the default builder.Current Behavior
Building on a mac with a recent Docker for Mac (mine is 4.0.1), deploy will fail with this error:
and a warning earlier that makes it clear the issue:
Reproduction Steps
Possible Solution
This could possibly be worked around with supporting
--output
, although given Buildkit is likely the future default, this seems like a bad option.Additional Information/Context
This is mentioned in #12472 (comment) and #20566, but neither of the comments make it clear that this is essentially a show stopper (without good workarounds) for anyone on a recent Docker for Mac.
CDK CLI Version
2.39.1 (build f188fac)
Framework Version
No response
Node.js Version
v18.8.0
OS
macOS 12.4
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: