Skip to content

[Bug][CI] Multi-platform build fails with docker driver in GitHub Actions #3568

@win5923

Description

@win5923

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

- 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:

  1. 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

  1. 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!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions