- Install docker for windows.
- Log out / Log in.
- Open "Docker Desktop" from Start menu. (Notice Icon in taskbar)
- Restart if docker asks you to do it.
- Install VcXsrv.
- Open "XLaunch" from Start menu.
Check the "Disable access control" checkbox.
- Open "PowerShell" from Start menu.
- Ensure
docker info
runs successfully. - Run
docker run -it -e DISPLAY=host.docker.internal:0 -v ${PWD}:/mnt -w ${PWD} ekiourk/ns2 bash
- Enter your password when asked for it. If your user account don't have a password, set one first.
- Wait for download...
- You'll be dropped in a shell where
ns
,nam
andxgraph
should work.