Docker Desktop action
Find a file
Mathieu Champlon 5300e088d4
Merge pull request #38 from docker/fix-wait-message-spacing
start: drop space in "sleep 10 s" for consistency
2026-06-10 08:07:31 +02:00
.github/workflows chore: pin GitHub Actions to commit SHA 2026-04-20 11:39:47 +02:00
start start: drop space in "sleep 10 s" for consistency 2026-06-09 17:25:47 +02:00
LICENSE Initial commit 2023-06-09 11:32:19 +02:00
README.md docs: recommend a 4 vCPU / 16 GB runner 2026-06-09 15:57:51 +02:00

desktop-action

Github Action to start Docker Desktop.

This github action is experimental. It currently supports starting Docker Desktop on "linux" nodes (ubuntu-latest) in Github Actions.

Important: since mid September 2023, the action inconsistently fails on macOs runner. We have updated the action to use linux runners.

Note that the usage of Docker Desktop is subject to Docker Desktop license agreement.

After this step executes, Docker Desktop is ready and available, the docker CLI can be executed in subsequent "run" steps

Choosing a runner

Docker Desktop runs a Linux VM, so the runner needs enough CPU and memory or dockerd can fail to finish starting and the action hangs waiting on the daemon. At least 4 vCPUs and 16 GB of RAM is a good baseline.

Watch out for ubuntu-latest: GitHub gives public repositories a 4 vCPU / 16 GB runner, but private and internal repositories get a smaller 2 vCPU / 7 GB one, and on that box dockerd often stalls during startup and never becomes ready. If your repository is private or internal, pick a larger runner (e.g. a GitHub larger runner with 4 vCPUs / 16 GB), not plain ubuntu-latest.

By default, the action downloads the last version of Docker Desktop. But you can specify another one by providing the build URL from where the action can download the specific version:

jobs:
  test-docker-desktop:
    name: Test Docker Desktop installation and start
    runs-on: ubuntu-latest
    strategy:
      matrix:
        build-url: [ "latest", "https://desktop.docker.com/linux/main/amd64/122432/docker-desktop-4.24.0-amd64.deb" ]

    steps:
      - name: Start Desktop
        uses: ./start
        with:
          docker-desktop-build-url: ${{ matrix.build-url }}