Dockan Windows
Native Windows port of Dockan using HCS for containers, HNS for networking, mapped directories for volumes, scheduled tasks for autostart, and PowerShell release installation.
Install
irm https://raw.githubusercontent.com/Dockan-Conteneurisation-libre/Dockan-Windows/main/scripts/install.ps1 | iexDefault path: %LOCALAPPDATA%\Dockan\bin\dockan.exe.
PowerShell PATH
$env:PATH = "$env:LOCALAPPDATA\Dockan\bin;$env:PATH"
dockan doctorFor a permanent user PATH, add %LOCALAPPDATA%\Dockan\bin and reopen PowerShell.
Requirements
Windows Containers enabled, vmcompute and hns running, elevated PowerShell for runtime and network operations.
Not Supported Yet
Dockan Panel, Linux rootfs images as native Windows containers, Linux package-manager flows, and systemd units.
Enable Windows Containers
If dockan doctor reports vmcompute or hns as absent or stopped, run this from an elevated PowerShell and reboot.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V,Containers -All
Restart-Computer
After reboot:
Start-Service vmcompute
Start-Service hns
dockan doctor
Expected result: vmcompute: ok, hns: ok, and isolation auto: windows-hcs.
Compose On Windows
Create dockan.yml with a native Windows image, Windows command, Windows volume path, and HNS network.
name: myapp
services:
web:
image: myapp:windows
command: cmd.exe /S /C C:\app\start.cmd
ports:
- 8080:80
volumes:
- data:C:\app\data
network: appnet
restart: always
networks:
- appnet
volumes:
- data
dockan network create appnet --driver nat
dockan compose up -f .\dockan.yml
dockan compose down -f .\dockan.yml
image: myapp:windows must be a real Windows image with HCS metadata such as windows.layers. Linux rootfs images are not supported.
Validate On Windows
dockan version
dockan doctor
dockan network create appnet --driver nat
dockan run -d --name web --network appnet -p 8080:80 myapp:windows
dockan exec web cmd.exe /C echo ok
dockan stop web
dockan rm web