Docker increase disk space

前端 未结 4 1592
滥情空心
滥情空心 2020-12-06 05:18

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 15

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 06:02

    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
    

提交回复
热议问题