Closed varad11 closed 1 year ago
This might be tracked by #625 ? @Dylan-AWS @subinataws Any updates on this particular issue?
I'm feeling extremely frustrated as this issue has been pending for over a month now, and the community is not receiving any updates yet. In contrast, GCP was able to resolve a similar issue within a day. (ref https://github.com/GoogleCloudPlatform/cloud-sdk-docker/issues/331 )
Buildx seemed to work on standard:6.0 image a few days back, but now it's not working. Temporarily I am able to create builds by adding commands in my buildspec.yml to download and run the latest release of buildx plugin. This works, but it's an extra hassle and the builds take more time. Ideally I guess the docker version provided by codebuild must include buildx rather than we manually downloading it.
This should be resolved in next release.
In the meantime if you need to get buildx working in your Standard:6.0 build you can add the following to your buildspec.
- mkdir -p /usr/local/lib/docker/cli-plugins
- curl -L https://github.com/docker/buildx/releases/download/v0.11.0/buildx-v0.11.0.linux-amd64 -o /usr/local/lib/docker/cli-plugins/docker-buildx
- chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
- export DOCKER_BUILDKIT=1 #enable buildkit for using buildx.
- docker build ...
Describe the bug docker: 'buildx' is not a docker command
To Reproduce Steps to reproduce the behavior:
Expected behavior Should print the builder instances before completing the build.
Logs
Platform (please complete the following information): N/A
Additional context N/A