Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of docker images downloaded by Docker (1.9.1) on Mac OS X

Tags:

docker

macos

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.

like image 881
mbbce Avatar asked Sep 16 '15 09:09

mbbce


People also ask

Where are downloaded docker images stored Mac?

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.

Where are downloaded docker images stored?

The docker images, they are stored inside the docker directory: /var/lib/docker/ images are stored there.


2 Answers

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 
like image 57
Mike Park Avatar answered Sep 18 '22 04:09

Mike Park


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):

Docker->Preferences->Advanced

Update: As mentioned by @udondan Docker now has a separate 'Disk' tab in Preferences where it shows the disk image location:

Docker->Preferences->Disk

like image 43
Pierz Avatar answered Sep 20 '22 04:09

Pierz