Docker增加磁盘空间 [英] Docker increase disk space

查看:1112
本文介绍了Docker增加磁盘空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个码头运行,它给我磁盘空间警告。如何增加码头空间并重新开始? (同一容器)



说我想给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屋!

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