Skip to content

Docker buildx component missing in amazonlinux2-aarch64-standard:3.0Β #640

Closed
@alexgmin

Description

@alexgmin

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:

  1. Add a new build project and set the image to amazonlinux2-aarch64-standard:3.0
  2. In buildspec.yml, use these lines:
- export DOCKER_BUILDKIT=1
- docker build .
  1. Trigger build
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions