Docker (1.9.1) 在 Mac OS X 上下载的 docker 镜像的位置 [英] Location of docker images downloaded by Docker (1.9.1) on Mac OS X
问题描述
从 Mac OSX 中的 docker hub 下载 docker 镜像后,它们位于何处.例如,如果我运行如下命令:
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?
注意:Docker 镜像存储在宿主机的什么位置? 这个问题主要是和linux机器有关的答案.Mac OS X 的答案是考虑将 boot2docker 与 docker 安装一起使用,而我的情况并非如此.
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.
推荐答案
对于使用 Docker 工具箱(使用 docker-machine)的人来说,有关 Mac OS X 上的 boot2docker 的答案无效.docker-machine VM 称为默认",它存在于 /Users/
目录中.
For someone who is using Docker toolbox (that uses docker-machine), the answers concerning boot2docker on Mac OS X is not valid. The docker-machine VM is called "default" and it exists in /Users/<username>/.docker/machine/machines/default/
directory.
注意:我还在这个问题上添加了这个答案: Docker 映像存储在主机上的何处? 但我也在这里回答,以便为专门寻找 Mac OS X 和新版本 Docker 的人更容易找到答案.
Note: I have also added this answer to this question: Where are Docker images stored on the host machine? but I am answering here as well so that it's easier to find the answer for someone specifically looking for Mac OS X and new version of Docker.
这篇关于Docker (1.9.1) 在 Mac OS X 上下载的 docker 镜像的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!