docker / docker/setup-docker-action

Ability to run Linux containers on Windows runner

Open
#166 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement status/triage
Dominant language
TypeScript
Stars
77
Forks
22
Avg merge
7d 5h
Merged PRs (30d)
6

Description

Description

I need to run integration tests on a Windows GitHub runner that uses Linux containers. Running directly on a Linux runner is not an option as I'm testing this specific configuration (Windows running Linux containers). I tried this:

If I install WSL2 and Docker on a Windows runner:

      - name: Set up WSL
        if: ${{ matrix.os == 'windows-latest' }}
        uses: Vampire/setup-wsl@v5

      - name: Set up Docker
        uses: docker/setup-docker-action@v4
        with:
          daemon-config: |
            {
              "features": {
                "containerd-snapshotter": true
              }
            }

but docker still tries to use Windows containers. The installed distribution contains docker and dockerd but I believe we need dockercli in order to run dockercli -SwitchLinuxEngine in order use Linux containers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the setup-wsl and setup-docker-action workflow on a Windows GitHub runner with Linux containers enabled. Read the action's Windows setup path and Docker engine selection behavior; done means the documented workflow can run Linux-container integration tests on the Windows runner.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.