Skip to content

Ability to run Linux containers on Windows runner #166

@cowwoc

Description

@cowwoc

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions