Sign inSign up

hackinsdn/dockurr-windows

By hackinsdn

•Updated 30 days ago

Forked dockurr/windows to allow using qcow2 Backing file Disk

Image
0

170

hackinsdn/dockurr-windows repository overview

This is a forked version of dockurr/windows (https://hub.docker.com/r/dockurr/windows⁠) - all credits to dockurr/windows team - to allow using qcow2 backing file Disk specially useful on Kubernetes deployment to avoid growing too much.

The image was created with basically:

docker pull dockurr/windows:6.05
docker create --name dockurr-win-patch dockurr/windows:6.05
docker cp disk.sh dockurr-win-patch:/run/disk.sh
docker commit dockurr-win-patch hackinsdn/dockurr-windows:6.05
docker push hackinsdn/dockurr-windows:6.05

And the changes:

--- disk.sh.bak	2026-08-21 18:53:33.000000000 +0000
+++ disk.sh	2026-09-18 20:29:06.708372579 +0000
@@ -254,6 +254,17 @@
   local dataSize
   dataSize=$(numfmt --from=iec "$diskSpace")

+  if [ -n "$DISK_BACKING_FILE" ] && [ -f "$DISK_BACKING_FILE" ]; then
+    html "Creating a $diskDesc image based on $DISK_BACKING_FILE ..."
+    info "Creating a $diskDesc image based on $DISK_BACKING_FILE ..."
+    if ! qemu-img create -f $diskFmt -b $DISK_BACKING_FILE -F $diskFmt $diskFile ; then
+      rm -f "$diskFile"
+      error "error creating image based on Backing file $DISK_BACKING_FILE... will continue with standard approach"
+    else
+      return 0
+    fi
+  fi
+
   if ! disabled "$ALLOCATE"; then

     # Check free diskspace

Tag summary

Content type

Image

Digest

sha256:1e41141a7…

Size

189.8 MB

Last updated

30 days ago

docker pull hackinsdn/dockurr-windows:6.05