0

I would like to limit my docker volumes in size, So I don't have one container crashing my entire environment because of excessive writes depleting my storage space.

I found it is possible to limit volumes size at creation time using --opt o=size=100m However Is it possible to change the size limit after I have created the volume?

0

If you're talking about editing the volume opt parameters using the docker CLI/API: no.

If you're talking about resizing on the fly: it depends on the driver. TMPFS can be expanded when remounted, as well as BTRFS, ZFS, etc, but that's not using docker CLI or API.

2
  • is there a method to do so manually? (not by docker CLI\API)?
    – GKman
    Sep 6 '20 at 6:56
  • What’s the type you used in the volume configuration? Do you have the command you ran to create it? Sep 6 '20 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.