user2925795
user2925795

Reputation: 398

Elastic Beanstalk Docker thin pool full and container became read-only

My container become read-only in 3 days~, always. I checked docker log and i got "Thin pool has 0 free data blocks which is less than minimum required 2425 free data blocks"..when i deploy again, the containers come back to rw.

I checked docker info too..

docker info

Someone can help me increase this disks? I searched and saw that the default is 12GB, i tried create two files in .ebextensions/

option_settings:
  aws:autoscaling:launchconfiguration:
    BlockDeviceMappings: /dev/xvdcz=:110:true:gp2

and

option_settings:
  aws:autoscaling:launchconfiguration:
    BlockDeviceMappings: /dev/xvdcz=:105::io1:500

But didnt work

lsblk

Upvotes: 1

Views: 251

Answers (1)

Ashok
Ashok

Reputation: 3611

A simple workaround is to run docker save and write the active image to a tar file, delete the active image (which deleted all the child images), then run docker load -i from the tar file and create a single new image. No more errors related to Thin Pool space

Upvotes: 1

Related Questions