如何使docker-machine在特定位置创建VM [英] How can I make docker-machine create a VM in a specific location

查看:550
本文介绍了如何使docker-machine在特定位置创建VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的开发机器是一个带有小型固态硬盘和巨大的外部磁盘的笔记本电脑。理想情况下,我想使用docker-machine来使用外部驱动器,而不是填满内部磁盘。



我知道我可以用mount来等等,但是有一种方法使docker-machine命令使用我指定的目录,而不是默认为〜/ .docker / machine /

解决方案

您是否尝试过此选项 -s,--storage-path 配置存储路径[$ MACHINE_STORAGE_PATH] ?



您可以在docker-machine --help中查看。


My development machine is a laptop with a smallish SSD and a huge external disk. Ideally I'd like docker-machine to use the external drive rather than filling up my internal disk.

I know that I can hack it with mounts and so on but is there a way to make the docker-machine command use a directory that I specify instead of defaulting to ~/.docker/machine/?

解决方案

Have you tried this option -s, --storage-path "Configures storage path [$MACHINE_STORAGE_PATH]"?

You can see it in docker-machine --help.

这篇关于如何使docker-machine在特定位置创建VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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