Where is docker image location in Windows 10?
The answers are really confusing because there is more than one way to run Docker in Windows. The newest way is with Windows 10 Home May 2020 Update. It will use the new version of Windows Subsystem for Linux (WSL2). This answer is about this configuration.
After activating WSL2, you'll install Docker Desktop. Docker Desktop is a client that'll connect to the host inside the WSL.
The image directory is somewhat inconsistent. If you run docker info
in your host machine or inside WSL it will give you the path Docker Root Dir: /var/lib/docker
which doesn't exist:
$ ls /var/lib/dockerls: cannot access '/var/lib/docker': No such file or directory
You'll find the images in
/mnt/wsl/docker-desktop-data/
Or in this Windows Explorer path:
\\wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\data\docker\image
If you are using Windows 10 non-Home versions, it may work differently. Take a look at the other answers. Since I don't have access to this OS, I won't try to answer.
On Windows 10, right click on the docker icon in the system tray (right hand side of task bar) and choose Settings...In the Advanced pane, you'll see something like:
- By using the
docker info
command. - In the result - check for Docker Root Dir
This folder will conatins images, containers, ...