How to increase Docker container default size?

前端 未结 3 1822
别跟我提以往
别跟我提以往 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:12

    In Docker Engine 19.03.6 on CentOS 7.7 :

    I fixed this with the following steps:

    # systemctl enable docker

    # systemctl stop docker

    # rm -rf /var/lib/docker

    # vim /etc/systemd/system/multi-user.target.wants/docker.service

    >     # Add storage option    
    >     ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --storage-opt dm.basesize=20G
    

    # systemctl daemon-reload

    # systemctl start docker

提交回复
热议问题