Description
Same issue as #625 but for al2, as mentioned here. #625 (comment)
Note that even though #625 is closed, the fix is not working, as indicated in #625 (comment)
Describe the bug
A clear and concise description of what the bug is.
Refers to Docker release note:
From Docker Engine version 23.0.0, Buildx is distributed in a separate package: docker-buildx-plugin. In earlier versions, Buildx was included in the docker-ce-cli package. When you upgrade to this version of Docker Engine, make sure you update all packages.
This will result in Dockerfile stated BUILDKIT=1 to fail.
To Reproduce
Steps to reproduce the behavior:
- Add a new build project and set the image to amazonlinux2-aarch64-standard:3.0
- In buildspec.yml, use these lines:
- export DOCKER_BUILDKIT=1
- docker build .
- Trigger build
- See error:
ERROR: BuildKit is enabled but the buildx component is missing or broken.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Expected behavior
This will success in amazonlinux2-aarch64-standard:3.0
Logs
N/A
Platform (please complete the following information):
N/A
Additional context
N/A