Where Docker Containers Are Stored on Windows
On Windows, Docker containers are usually stored inside Docker Desktop’s Linux virtual disk, not in a separate normal Windows folder for each container. The exact location depends on whether you use Docker Desktop with the WSL 2 backend, Docker Desktop with Hyper-V, or native Windows containers. This guide shows how to identify your setup, find the storage location, and locate the files that actually matter.
How Docker Storage Works on Windows
A Docker container is not normally a folder you browse in File Explorer. Its filesystem is assembled by the Docker engine from:
- Read-only image layers
- A writable container layer
- Optional named volumes
- Optional bind mounts from folders on your Windows drive
For Linux containers in Docker Desktop, the Docker engine runs in a Linux environment managed by Docker Desktop. From the engine’s perspective, image layers, container writable layers, and named volumes commonly live under /var/lib/docker. That Linux path is stored inside Docker Desktop’s virtual disk on Windows.
The writable layer belongs to one container. Removing that container also removes its writable layer unless the important data was stored in a named volume or a bind mount.
Docker Desktop settings are separate from container data. For example, Docker Desktop stores its settings file at:
C:\Users\<your-user-name>\AppData\Roaming\Docker\settings-store.json
That file is useful for Docker Desktop configuration, but it is not where images, volumes, or container filesystems are stored.
How to Find Docker Container Storage on Windows
First identify which Docker engine is running. The storage location you can see on Windows differs by backend.
| Docker setup | What stores the container data | Best way to locate it |
|---|---|---|
| Docker Desktop with WSL 2 Linux containers | Docker Desktop’s Linux virtual disk, often an ext4.vhdx file |
Check Docker Desktop’s disk-image location and inspect Docker’s engine root |
| Docker Desktop with Hyper-V Linux containers | Docker Desktop-managed virtual disk | Check Docker Desktop’s disk-image location |
| Native Windows containers | Docker Engine data root on Windows, often under C:\ProgramData\docker |
Read the Docker Root Dir reported by Docker |
| Bind-mounted application files | The Windows folder selected as the mount source | Inspect the container’s mounts |
Step 1: Identify the Active Docker Context and Engine
Start by checking which Docker context your command line is using.
docker context show
Docker Desktop Linux containers commonly use the desktop-linux context. Next, check the operating system reported by the active Docker engine.
docker info --format '{{.OperatingSystem}}'
If the output indicates Docker Desktop, your Linux containers are stored in Docker Desktop’s managed Linux storage. If it reports Windows, you are using Windows containers and should expect a Windows Docker data directory instead.
If you want Docker commands to work inside a particular WSL 2 distribution, open Settings > Resources > WSL Integration in Docker Desktop and enable Docker WSL integration for that selected WSL 2 distribution. Confirm the exact distribution in Docker Desktop’s WSL 2 distributions selection.
You can list your installed WSL distributions and see which version each uses with:
wsl --list --verbose
Step 2: Read Docker’s Engine Storage Root
Ask Docker where its engine stores data.
docker info --format '{{.DockerRootDir}}'
For Linux containers on Docker Desktop, this commonly returns:
/var/lib/docker
That is a Linux path inside Docker Desktop’s virtualized Linux environment. You cannot open C:\var\lib\docker in Windows Explorer.
For native Windows containers, this command normally returns a Windows path. A common default is:
C:\ProgramData\docker
Treat the value returned by your own Docker engine as authoritative, especially if your organization has configured a custom Docker data root.
For Docker Desktop, also check Settings > Resources > Advanced for the Disk image location setting when it is available for your backend. Docker Desktop uses that location for the Linux volume containing containers and images. Docker documents this setting in its Docker Desktop settings documentation.
Step 3: Find the Storage Used by One Container
A container may use one or more mounts, and those mounts determine where its important data lives. List all containers first:
docker ps -a
Then inspect the mounts for the container you care about:
docker inspect <container-name-or-id> --format '{{json .Mounts}}'
Look for these fields in the output:
Type: UsuallybindorvolumeSource: The actual source locationDestination: The path inside the container
A bind mount might show a Windows folder as its source, such as C:\Projects\my-app. That is the folder you can open, edit, back up, and version-control normally.
A named volume usually shows a Linux-side mount point such as /var/lib/docker/volumes/project_db/_data. For Docker Desktop Linux containers, that path is inside the Docker-managed virtual disk rather than directly exposed as a regular Windows folder.
Where Docker Container Filesystems Are Stored
With Docker Desktop and WSL 2, container filesystems are represented on Windows by Docker’s WSL storage and virtual disk rather than by one separately exposed Windows folder for each container.
On many Docker Desktop WSL 2 installations, the storage is under a path similar to:
C:\Users\<your-user-name>\AppData\Local\Docker\wsl\
The data is commonly held in an ext4.vhdx virtual disk file, often beneath a data directory. The exact subfolders and file location can vary by Docker Desktop version, installation history, and whether you selected a custom disk-image location.
Docker manages the underlying container storage in that location. For a Linux engine using the OverlayFS storage driver, container layer data is generally managed beneath the engine’s /var/lib/docker directory.
Do not edit, delete, rename, or try to reorganize Docker’s ext4.vhdx file while Docker Desktop is using it. Docker expects to control that filesystem, and direct changes can corrupt images, containers, and volumes.
To copy a file from a container filesystem, use Docker: For example:
docker cp <container-name-or-id>:/path/inside/container .\container-files
This copies the requested container path into a container-files directory in the current Windows folder.
Where Docker Volumes and Bind Mounts Are Stored
Named volumes store Docker-managed persistent data inside Docker Desktop’s Linux storage, while bind mounts keep files in their Windows source directory.
Named Volumes
Named volumes are Docker-managed persistent storage. They survive when you remove and recreate a container, which makes them a better choice than a container’s writable layer for databases and other durable application data.
List your local volumes with:
docker volume ls
Inspect a particular volume with:
docker volume inspect <volume-name>
The output includes a Mountpoint value. For Linux containers, it commonly resembles this:
/var/lib/docker/volumes/<volume-name>/_data
On Docker Desktop with WSL 2, that mount point is inside Docker Desktop’s Linux storage.
To examine the contents using Docker, mount the volume into a temporary Linux container:
docker run --rm -it -v <volume-name>:/data alpine sh
Inside that temporary container, the volume’s files are available under /data. Type exit when you are done; Docker removes the temporary inspection container automatically.
For database volumes, use the database’s own backup tool when possible. Copying raw files from a live database volume can produce an inconsistent backup.
Bind Mounts
Bind mounts connect a folder on Windows directly to a path inside a container. For example, a Compose project may mount your source directory into /app, while the real files remain in the project directory on Windows.
The Source field from this command identifies the actual host folder:
docker inspect <container-name-or-id> --format '{{json .Mounts}}'
For bind mounts, you can work with the source directory normally in File Explorer, PowerShell, Git, and your editor. If a container changes files in the mounted directory, those changes appear on the Windows host immediately, subject to normal file-sharing and permission behavior.
A quick rule is:
- Use bind mounts for source code and files you want to manage directly on Windows.
- Use named volumes for database files and other Docker-managed persistent data.
- Do not rely on a container’s writable layer for data you need after the container is removed.
How to Move Docker Storage to Another Drive
Moving Docker storage can free space on C: when images, build cache, and volumes grow large. Use Docker Desktop’s supported disk-image setting when your installation provides it rather than manually moving Docker’s internal files.
Step 1: Back Up Important Persistent Data
Before moving anything, identify important named volumes:
docker volume ls
Back up databases with their native dump or export command. Back up bind-mounted project folders with your usual source-control, archive, or file-backup process.
Images can generally be pulled or rebuilt again, but named-volume data may be irreplaceable.
Step 2: Stop Workloads and Quit Docker Desktop
Stop containers that write data before changing the storage location.
docker ps
Stop individual containers that are running:
docker stop <container-name-or-id>
Then quit Docker Desktop completely from its system-tray menu.
Step 3: Change the Disk Image Location in Docker Desktop
Open Docker Desktop and go to Settings > Resources > Advanced. If your backend provides the Disk image location setting, select a folder on a local drive with sufficient free space, apply the change, and allow Docker Desktop to restart.
Use a local NTFS drive rather than a network share or a removable drive. Docker’s virtual disk needs reliable filesystem behavior and should remain available whenever Docker Desktop starts.
Step 4: Verify Containers, Images, and Volumes After Restarting
After Docker Desktop restarts, check that the expected objects are still available:
docker ps -a
docker image ls
docker volume ls
Start one noncritical container and confirm that it can read its expected volume or bind-mounted files. If a required volume is missing, stop and restore from the backup made before the move rather than creating a new empty volume with the same name.
How to Confirm What Is Using Disk Space
Docker Desktop’s Images view shows locally stored images and the disk space they use. It also provides cleanup controls for unused images. Docker explains these local-image and cleanup features in its Images view documentation.
From the command line, view Docker’s disk usage with:
docker system df
Review the output before choosing any cleanup action.
Before removing anything, check whether the data is unused or merely associated with a stopped container. A stopped container can still depend on an image, and a named volume can contain the only copy of application data.
Use this short check before reclaiming space:
- Confirm which Docker context is active.
- Inspect containers before removing them.
- Inspect volumes before removing them.
- Back up databases and important application data.
- Use Docker Desktop or Docker commands for cleanup.
Start by running docker context show, then inspect Docker Root Dir and the container’s mounts. That sequence tells you whether the data is in Docker Desktop’s virtual disk, a Windows Docker data directory, or a bind-mounted folder you can open directly.
Frequently Asked Questions
Where are local Docker images stored on Windows?
For Docker Desktop Linux containers, local images are stored inside Docker Desktop’s Linux virtual disk, often represented by an ext4.vhdx file under the Docker WSL storage location. Inside the Docker engine, images are managed under the Docker Root Dir, commonly /var/lib/docker. Check the active engine’s reported root with:
docker info --format '{{.DockerRootDir}}'
Where are the filesystems of Docker containers?
A Linux container filesystem is stored as Docker-managed image layers plus a writable container layer inside Docker Desktop’s Linux storage. It is not normally available as a separate Windows folder per container. Use Docker copy commands to retrieve files, and inspect the container’s mounts to identify any data exposed on Windows.
Where are my Docker volumes stored?
Named volumes for Docker Desktop Linux containers are stored inside Docker Desktop’s Linux virtual disk, commonly under the engine path /var/lib/docker/volumes. Inspect a volume to see its engine-side mount point:
docker volume inspect <volume-name>
Bind-mounted volumes are different: their files remain in the Windows source folder shown in the container’s mount information.
Do Windows Docker containers exist?
Yes. Docker can run native Windows containers when Docker Desktop is switched to Windows containers or when Docker Engine is configured on Windows Server. Their storage is managed by the Windows Docker engine, often under C:\ProgramData\docker, but the exact configured path is shown by Docker Root Dir.
Why can’t I see a folder for each Docker Desktop container?
Docker Desktop stores Linux container data in a managed Linux filesystem rather than creating a Windows folder for every container. The virtual disk contains shared image layers, writable layers, volumes, and Docker metadata. Inspect a container’s mounts to find any files deliberately exposed on Windows, then use Docker commands to copy or inspect everything else.
