如何在Mac上更改Docker映像安装目录? [英] How to change the Docker image installation directory on Mac?

查看:71
本文介绍了如何在Mac上更改Docker映像安装目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Docker映像存储在 $ HOME/Library/Containers/com.docker.docker/Data 中,但是例如如何将那些大文件移动到外部驱动器?我尝试了符号链接,但是没有用.我也找不到 docker -g 选项,如

然后打开磁盘,然后单击移动磁盘映像"

选择要移动到的文件夹,等待它完成并完成操作.

Docker images are stored in $HOME/Library/Containers/com.docker.docker/Data but how to move those large files to an external drive for example? I have tried symbolic link, it didn't work. Also I couldn't find the -goption for docker as mentioned here. Any suggestions?

解决方案

All you have to do is go to preferences

Then Disk and click at "move disk image"

Select the folder you want to move to, awaits it completes and you are done.

这篇关于如何在Mac上更改Docker映像安装目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆