Jump to content

Docker .img Full - How to Expand


archedraft

Recommended Posts

Settings / Docker

 

Stop Docker

 

Delete the existing image file

 

Recreate the image file with a greater size, and enable docker

 

Add your containers again via "Add Container", and select all of your "my*" containers you were using.

 

After all the downloads happen again, it will be like nothing happened.

Link to comment

Awesome, I was guessing that was the case. Thanks for your reply.

 

As it turned out, the real reason was the SSD ran out of space not the docker.img. I just setup a new windows 10 VM and got a little carried away installing new things. Then all of the sudden I couldn't access some of my dockers. Ended up moving some stuff off the SSD and problem solved.

Link to comment

Do you really have to delete the img file and reinstall all the dockers?

 

It's been a while, but I kinda remember just stopping docker, changing the img size and restarting it. I think unRaid just added more blank bits using the dd command and expands the file.

 

I don't think I had to reinstall anything. But like I said, that was a while back and my memory ain't what it used to be :-)

Link to comment

Do you really have to delete the img file and reinstall all the dockers?

 

It's been a while, but I kinda remember just stopping docker, changing the img size and restarting it. I think unRaid just added more blank bits using the dd command and expands the file.

 

I don't think I had to reinstall anything. But like I said, that was a while back and my memory ain't what it used to be :-)

You could be correct.  Never had a reason to go beyond 20G, so its just how I would have guessed that it would work.
Link to comment

 

30G I've allocated now..  ;D

 

I think you're having way to much fun with docker!

 

Shouldn't have to increase it again for a while

 

Label: none  uuid: 1b92ba03-511e-46a3-944d-a0695834ce69
Total devices 1 FS bytes used 20.20GiB
devid    1 size 30.00GiB used 24.04GiB path /dev/loop0

btrfs-progs v4.1

Link to comment

This seems an appropriate place to ask the following...

 

What is the best way to manage the docker's increasing size?

 

My docker size has been increasing. I do update dockers when available, does this mean garbage is being left behind every upgrade?

 

If the above is true, is the only way to manage the increasing size to remove the docker container+image, and re-add? (other than increasing the docker size itself).

 

Thanks  :)

Link to comment

This seems an appropriate place to ask the following...

 

What is the best way to manage the docker's increasing size?

 

My docker size has been increasing. I do update dockers when available, does this mean garbage is being left behind every upgrade?

 

If the above is true, is the only way to manage the increasing size to remove the docker container+image, and re-add? (other than increasing the docker size itself).

 

Thanks  :)

 

To manage docker size properly:

1) Do not update dockers

2) Do not run auto-updating dockers

3) Do not install/uninstall/install/uninstall dockers

4) Periodically scrub your docker using the UI Settings/DockerSettings page

 

My docker size is 654 megs in use after 5.5 weeks of use, when initial base size after first creations was around 645 megs. I run the following 3 dockers: EggDrop, NzbGet, and a torrent program.

 

For those who update too frequently or use auto-updating programs the following step is required:

 

5) Nuke From Orbit periodically to restart back to pristine condition.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...