Where are the docker images located once they are downloaded from docker hub in Mac OSX. For example if I run a command like:
docker run hello-world
the image is downloaded and the container is run but where is that image located on my system?
Note: Where are Docker images stored on the host machine? This question has answers related to linux machine, mainly. The answers for Mac OS X are considering that boot2docker is being used alongside docker installation, which is not the case for me.
On a Mac, the default location for Docker images is ~/Library/Containers/com. docker. docker/Data/vms/0/. Note than on Windows and Mac, Docker runs Linux containers in a virtual environment.
The docker images, they are stored inside the docker directory: /var/lib/docker/ images are stored there.
And if you are using Docker for Mac then the location is again different, namely:
/Users/MyUserName/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
The Disk image location can also be seen (as mentioned in the docs) by selecting Preferences->Advanced menu from the Docker toolbar icon (works in Docker-CE v17):
Update: As mentioned by @udondan Docker now has a separate 'Disk' tab in Preferences where it shows the disk image location:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With