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

后端 未结 11 1195
有刺的猬
有刺的猬 2020-12-07 18:15

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
<         


        
11条回答
  •  清歌不尽
    2020-12-07 19:12

    The docker images are stored in a different location on the Mac with Docker Desktop, different to where they are stored on other Linux systems.

    Extract from Docker documentation (retrieved 25 March 2020 from https://docs.docker.com/docker-for-mac/space/ )

    Docker Desktop stores Linux containers and images in a single, large “disk image” file in the Mac filesystem. This is different from Docker on Linux, which usually stores containers and images in the /var/lib/docker directory.

    On my Mac with MacOS 10.14.6 Mojave, running Docker version 19.03.8 that single large file can be found at:

    ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
    

提交回复
热议问题