Skip to content

Instantly share code, notes, and snippets.

@ScottTodd
Created October 18, 2024 21:14
Show Gist options
  • Save ScottTodd/4c6126702b14ff3275e1553be451c7f4 to your computer and use it in GitHub Desktop.
Save ScottTodd/4c6126702b14ff3275e1553be451c7f4 to your computer and use it in GitHub Desktop.

Windows Docker development

Prerequisites

Use Windows 10/11 Pro or Enterprise, NOT HOME (needed for container virtualization).

Get Docker Desktop

Download and run a container

docker pull ghcr.io/eliasj42/arc-windows-runner:latest
docker run -it --entrypoint powershell ghcr.io/eliasj42/arc-windows-runner:latest

Look around in the container

PS C:\home\runner> ls 'C:\Program Files\Git\bin'


    Directory: C:\Program Files\Git\bin


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         10/8/2024   1:53 AM          47496 bash.exe
-a----         10/8/2024   1:53 AM          46968 git.exe
-a----         10/8/2024   1:53 AM          47496 sh.exe

Build and run a container

git clone https://github.com/Eliasj42/arc-windows-runner.git
cd arc-windows-runner
docker build --build-arg RUNNER_CONTAINER_HOOKS_VERSION=0.6.1 --build-arg RUNNER_VERSION=2.320.0 -f Dockerfile -t arc-windows-runner:debug .
docker run -it --entrypoint powershell arc-windows-runner:debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment