How to increase Docker container default size?

前端 未结 3 1846
别跟我提以往
别跟我提以往 2021-01-18 06:36

We have created docker image with default size of 10GB and we have loaded cassandra data now it is full means there is no space. Can anyone tell how to increase the docker c

3条回答
  •  轮回少年
    2021-01-18 07:11

    The default basesize of a Docker container, using devicemapper, has been changed from 10GB to 100GB. Here is a link to the corresponding pull request in github.

    Fixes issue #14678

    Current default basesize is 10G. Change it to 100G. Reason being that for some people 10G is turning out to be too small and we don't have capabilities to grow it dyamically.

    This is just overcommitting and no real space is allocated till container actually writes data. And this is no different then fs based graphdrivers where virtual size of a container root is unlimited.

    Signed-off-by: Vivek Goyal vgoyal@redhat.com

    Using the last version of docker should solve your problem.

提交回复
热议问题