Posts

Showing posts from December, 2025

Docker Desktop on Windows with WSL (Ubuntu)

On Windows with Docker Desktop + WSL2 , all Docker containers, images, and volumes are stored inside the WSL2 backend , not directly on your Windows filesystem. Here’s how it works: 1️⃣ Where Docker stores containers and images Docker Desktop uses a special WSL2 distro called: docker-desktop docker-desktop-data When you run a container: docker run hello-world It is actually running inside the docker-desktop WSL2 instance , not Ubuntu or C:\ directly. All container filesystem layers, images, and volumes are stored inside this docker-desktop-data virtual disk ( ext4.vhdx ) located somewhere like: C:\Users\kr28n\AppData\Local\Docker\wsl\data\ext4.vhdx 2️⃣ Interaction with Ubuntu distro Your Ubuntu WSL ( /home/kr28n ) can access Docker CLI because Docker Desktop exposes the engine to WSL distros. But containers don’t live inside your Ubuntu filesystem ; they live in the docker-desktop backend. Ubuntu just acts as a client to Docker. 3️⃣ How to verify docker info You’ll see: Server: Co...