Windows iso keeps being downloaded/reinstalled after using the container few times
Operating system
Ubuntu 22.04
Description
Container is started with sudo docker compose up The first time, Windows iso is downloaded & installed & executed. Everything works flawless Windows is shut down via the web interface, docker container stops Container is restarted. Everything works, windows boots. Container is stopped again. Everything works as expected. Container is restarted. Everything works, windows boots. Container is stopped again. Everything works as expected. Container is restarted. Everything works, windows boots. Suddenly, a new windows iso is downloaded and installed, losing all previous work.
Docker compose
sudo docker run -it --rm --name windows -e RAM_SIZE="16G" -e CPU_CORES=8 -e DISK_SIZE="100G" -p 8006:8006 -p 3399:3389/tcp -p 3399:3389/udp -p 4499:4499 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "./windows-docker/data/shared/:/data" --stop-timeout 120 dockurr/windows
Docker log
❯ Starting Windows for Docker v4.35...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Xeon Bronze 3206R | RAM: 107/126 GB | DISK: 777 GB (ext4) | KERNEL: 6.8.0-65...
❯ Requesting Windows 11 from the Microsoft servers...
❯ Downloading Windows 11...
/storage/tmp/win11x64.iso 0%[ /storage/tmp/win11x64.iso 0%[ /storage/tmp/win11x64.iso 0%[ /storage/tmp/win11x64.iso 0%[
Screenshots (optional)
No response
Any thoughts on this problem?
Please retry with v5.00 of the container, maybe it has been fixed now.
@javierolivanbescos123 You do not mount /storage as a volume, this is where your windows is stored on. See: https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-change-the-storage-location
@schmic Good catch! Also he is using the --rm flag, which stands for "remove" and deletes everything when the container is stopped. The only reason why this flag is included in the readme is so that people can use it for quick testing, but for long-term usage it should not be included in your command.