Docker增加磁盘空间 [英] Docker increase disk space
问题描述
说我想给15gb。
我假设您正在谈论磁盘空间来运行您的容器。
确保在您正在使用的任何磁盘驱动器上有足够的空间 / var / lib / docker
这是Docker使用的默认值。您可以使用 -g
守护程序选项更改它。
如果您没有足够的空间,您可能需要重新分区您的操作系统驱动器,以使您拥有超过15GB的空间。如果您使用 boot2docker
或 docker-machine
,则必须在虚拟机上增加卷。它将根据您用于虚拟化的内容(例如VirtualBox,VMware等)而有所不同
例如,如果您使用VirtualBox和 docker-机器
您可以从40GB的VM开始。
docker-machine create - 驱动程序virtualbox --virtualbox-disk-size40000默认
I have a docker running and it gives me disk space warning. How can i increase the docker space and start again? (The same container)
Lets say I want to give like 15gb.
I assume you are talking about disk space to run your containers.
Make sure that you have enough space on whatever disk drive you are using for /var/lib/docker
which is the default used by Docker. You can change it with the -g
daemon option.
If you don't have enough space you may have to repartition your OS drives so that you have over 15GB. If you are using boot2docker
or docker-machine
you will have to grow the volume on your Virtual Machine. It will vary depending on what you are using for Virtualization (i.e VirtualBox, VMware, etc)
For example if you are using VirtualBox and docker-machine
you can start with something like this for a 40GB VM.
docker-machine create --driver virtualbox --virtualbox-disk-size "40000" default
这篇关于Docker增加磁盘空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!