-
Notifications
You must be signed in to change notification settings - Fork 618
Description
Search before asking
- I searched the issues and found no similar issues.
KubeRay Component
ci
What happened + What you expected to happen
When building multi-platform Docker images in our GitHub Actions workflow using docker/build-push-action@v5
, the workflow fails with the following error:
ERROR: Multi-platform build is not supported for the docker driver.
Switch to a different driver, or turn on the containerd image store, and try again.
Ref: https://github.com/ray-project/kuberay/actions/runs/14912974191/job/41891655016
kuberay/.github/workflows/image-release.yaml
Lines 55 to 56 in 3875356
- name: Set up Docker | |
uses: docker/setup-docker-action@v4 |
This because The default docker/setup-docker-action
does not support loading multi-platform images to the local image store of the runner after building them. To load a multi-platform image, you need to enable the containerd image store option for the Docker Engine.
We can choose one of the following two approaches:
- Enable
containerd image store
in the Docker daemon
- name: Set up Docker
uses: docker/setup-docker-action@v4
with:
daemon-config: |
{
"debug": true,
"features": {
"containerd-snapshotter": true
}
}
Ref: https://docs.docker.com/build/ci/github-actions/multi-platform/#build-and-load-multi-platform-images
- Or switch to use
docker/setup-buildx-action
https://github.com/docker/setup-buildx-action
Reproduction script
N/A
Anything else
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!