GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gh-workflow/setup-docker-wsl: Set up Docker in WSL on Windows with Skrog

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
BranchesTags
Open more actions menu

Latest commit

 

History

48 Commits
48 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
scripts
scripts
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Set up Docker in WSL on Windows

![GitHub Marketplace](https://img.shields.io/badge/marketplace-setup--docker--in --wsl--on--windows-blue?logo=github&labelColor=333&style=flat-square) Release Immutable Releases Tests

Set up a Linux Docker engine in WSL on a Windows GitHub Actions runner with Skrog.

Run docker in later workflow steps. The Docker engine runs in WSL.

Usage

Run the action before Docker commands:

- name: Set up Docker in WSL on Windows
  uses: gh-workflow/setup-docker-wsl@v1

- name: Build image
  run: docker build --tag example .

- name: Run image
  run: docker run --rm example

Inputs

Name Required Default Description
skrog-version No 0.12.0 Skrog release version to install or "latest".
enable-unix-socket No true Enable Unix socket /var/run/docker.sock.
verify-docker No true Verify Docker.
verify-docker-in-containers No false Verify Docker access from a container.

On persistent self-hosted runners, set enable-unix-socket: "false" to preserve a running Docker Engine.

Unix socket and Docker access from containers

For containers to use the host's Docker daemon, one would typically use the Unix socket /var/run/docker.sock.

Example:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker:cli version

The default enable-unix-socket stops Docker Engine before Skrog starts so the Unix socket mount above works.

For pipe and context details, see the Skrog installation docs and CI runner docs.

About

Set up Docker in WSL on Windows with Skrog

Topics

dockerdocker-applicationskrogwindowswslwsl-installationwsl-setupwsl2

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.