A guide to run Windows 11 inside Docker via QEMU/KVM on GitHub Codespaces, and keeping it alive 24/7 using a GitHub Actions cron job.
- Create a repository using this template.
- Launch a GitHub Codespace on the repository. Select the 4 vCPU / 16GB RAM machine type.
- The devcontainer will automatically run
docker-compose upto start Windows 11. - Expose the web interface (port 8006) using a Cloudflare Tunnel:
cloudflared tunnel --url http://localhost:8006 - Configure the
.github/workflows/keep-alive.ymlwith yourGH_PAT(Personal Access Token) andCODESPACE_NAMEsecrets to keep the Codespace running 24/7!