Docker Desktop 4.95.0 WSL2/containerd - How to verify image-store free space and VHDX mapping?

Hello Docker community,

I’m using Docker Desktop 4.95.0 on Windows with the WSL2 backend and the containerd image store enabled.

My Docker Desktop data disk is configured at a custom location:

D:\DockerData\DockerDesktopWSL\disk\docker_data.vhdx

What I’m trying to achieve

Before pulling an official PostgreSQL 16 image, I need a supported, read-only method to:

  1. Identify the filesystem actively backing the containerd image store.

  2. Measure the actual usable free space in bytes.

  3. Verify that the filesystem is backed by the active docker_data.vhdx.

  4. Avoid privileged containers, namespace switching, mount modifications, or Docker configuration changes.

What I’ve observed

The docker-desktop WSL distribution is running, but when executing a read-only diagnostic using:

wsl.exe --distribution docker-desktop --exec /bin/sh -s

I found:

  • /var — exists and is accessible.

  • /var/lib — exists and is accessible.

  • /var/lib/docker — absent.

  • /var/lib/desktop-containerd — absent.

  • /var/lib/desktop-containerd/daemon — not resolvable because its parent is absent.

The shell and PID 1 share the same observed mount namespace and root filesystem identity.

Historical Docker Desktop daemon logs refer to /var/lib/desktop-containerd/daemon, but that path is not visible from this WSL shell.

I understand that docker system df reports Docker object usage, not necessarily the available space of the underlying filesystem.

My questions

  1. What is the officially supported read-only way to identify the active containerd image-store filesystem in Docker Desktop 4.95.0 using WSL2?

  2. How can I confirm that this active filesystem is backed by the configured docker_data.vhdx?

  3. Is there a Docker Desktop UI, CLI command, API, or supported diagnostic interface that reports the actual usable free space of the image store?

  4. If direct filesystem access is unsupported, what storage-capacity verification method does Docker recommend before pulling an image?

I’m not trying to relocate or repair Docker storage. I only need to safely verify available capacity and confirm the active storage backing.

Any guidance or links to official documentation would be greatly appreciated.

Thank you!

Were your questions suggested by someone/something or all of your questions are things that you definitely need to know?

A simple docker info tells you if you are using the containerd image store if you check the “driver-type” in the output and if it is “containerd.snapshotter”, it is the containerd image store. But Docker Desktop GUI also shows that as you can disable or enable it in the “General” section.

Since everything is written on the docker_data vhdx, I don’t see what should be verified here.

I am also not sure about privileged containers in the question. That also indicates someone or an AI agent knew the docker daemon was in a separate kernel namespace, so you could not see it directly from the WSL distro. That is why the fodlers are not there as all folders should be looked for in the namespace of containerd. But there is no need to enter that namespace. The status bar of Docker Desktop shows the size of used space.next to CPU usage. And a simple

docker run --rm -it bash df -h /

command shows the used space as well.