Watch the video guide, then follow the steps below to spin up your free Windows environment on GitHub Codespaces.
Then follow the step-by-step guide below
$ df -h
$ sudo mkdir -p /tmp/docker-data
Ctrl+O → Enter → Ctrl+X.$ sudo nano /etc/docker/daemon.json
{
"data-root": "/tmp/docker-data"
}
After restarting, open the terminal again and continue with the next step.
Docker Root Dir shows /tmp/docker-data in the output.$ docker info ... Docker Root Dir: /tmp/docker-data ← must show this
windows10.yml# Before running docker-compose up, execute: # bash check_github_follow.sh || exit 1 # If you don't follow https://github.com/jephersonRD # the environment will NOT start. services: windows: image: dockurr/windows container_name: windows environment: VERSION: "10" USERNAME: ${WINDOWS_USERNAME} PASSWORD: ${WINDOWS_PASSWORD} RAM_SIZE: "10G" CPU_CORES: "4" cap_add: - NET_ADMIN ports: - "8006:8006" - "3389:3389/tcp" volumes: - /tmp/docker-data:/mnt/disco1 - windows-data:/mnt/windows-data devices: - "/dev/kvm:/dev/kvm" - "/dev/net/tun:/dev/net/tun" stop_grace_period: 2m restart: always volumes: windows-data:
.env with your credentials.env file in the same folder. Replace the placeholder values with your actual username and password for Windows.WINDOWS_USERNAME=YourUsername WINDOWS_PASSWORD=YourPassword GITHUB_USER=YourGitHubUsername
Never commit .env to git. Add it to your .gitignore right now:
$ echo ".env" >> .gitignore
$ docker-compose -f windows10.yml up
Once running, go to the Ports tab in Codespace → find port 8006 → set visibility to Public → click the globe icon to open Windows in your browser.
$ docker stop windows