Jump to content

Feel dumb, what am I missing?


Recommended Posts

Did you give it a size and path for the docker img? Path must be on a disk, not a user share. I have mine at /mnt/cache/docker.img. You can put it at the top level of cache since mover doesn't touch files only folders at the top level. You must actually type the size into the box, the placeholder is just an example.

Link to comment

Actually my issue was that I hadn't made the directory on the cache drive I'd configured. I assumed it would for me, its now sorted.

 

Probably should allow folks to create directories.  Maybe we'll add that feature in later.

 

Oh I didn't type a size. That's not obvious BTW limetech!

 

As far as not typing in a size, what's not obvious?  Is the text box that says "size" and the help text not obvious enough?  Maybe we should just implement a javascript handler for this that says, "one of these form fields isn't filled out, I'll give you a hint which...it's the empty one."  ;-)

Link to comment

Next dumb Q...

 

Docker 'images' is as unRAID has it, an odd concept to me. I need to specify a size limit? Why?

 

As I understand it, the docker app creates a virrtual btrfs img to the size you specify.  I can't say why that is the implementation.

Link to comment

Next dumb Q...

 

Docker 'images' is as unRAID has it, an odd concept to me. I need to specify a size limit? Why?

 

As I understand it, the docker app creates a virrtual btrfs img to the size you specify.  I can't say why that is the implementation.

I think btrfs has some ability to allow dockers to share code storage. That whole copy-on-write thing. Or something.
Link to comment

Next dumb Q...

 

Docker 'images' is as unRAID has it, an odd concept to me. I need to specify a size limit? Why?

 

As I understand it, the docker app creates a virrtual btrfs img to the size you specify.  I can't say why that is the implementation.

 

Docker requires BTRFS CoW and snapshot to have good performance. To not enforce users to format their drives with BTRFS, Tom decided that a loop device mount would be better to isolate Docker needs from the rest of the array.

 

Some info on loop device: http://en.wikipedia.org/wiki/Loop_device

Link to comment

Next dumb Q...

 

Docker 'images' is as unRAID has it, an odd concept to me. I need to specify a size limit? Why?

 

As I understand it, the docker app creates a virrtual btrfs img to the size you specify.  I can't say why that is the implementation.

 

Docker requires BTRFS CoW and snapshot to have good performance. To not enforce users to format their drives with BTRFS, Tom decided that a loop device mount would be better to isolate Docker needs from the rest of the array.

 

Some info on loop device: http://en.wikipedia.org/wiki/Loop_device

 

I dont know about that. I'm not seeing anything drastically horrible when I run Docker under Boot2Win on my Windows OS. Unless the virtual linux vm itself is using BTRFS. Then again my WinOS is on SSD. Maybe performance is just a dog on spinners.

 

Since LT began on docker, they have had at least 4 updates to it, from 1.2 to 1.6. So maybe things improved since then on non BTRFs filesystems.

Link to comment

And it can easily expand the image if you need to. Just stop docker, put in a larger size, restart. You can't shrink it easily though.

 

But the best thing is the xml template storage. You can delete the image entirely, create a new one, and then recreate all your dockers with the same settings in under a minute

 

Link to comment

Ok - it seems an odd decision but the technical reasons make sense(ish).

 

I wish the size limit were optional as I really don't want to allocate several GB to a simple NGINX container. I just simply want all the Docker stuff to live on my cache drive (which is an SSD). I don't care (or want to care) about the size of each image.

Link to comment

 

 

But the best thing is the xml template storage. You can delete the image entirely, create a new one, and then recreate all your dockers with the same settings in under a minute

Yes, that is nice but has nothing to do with the BTRFS docker image usage.

Link to comment

Ok - it seems an odd decision but the technical reasons make sense(ish).

 

I wish the size limit were optional as I really don't want to allocate several GB to a simple NGINX container. I just simply want all the Docker stuff to live on my cache drive (which is an SSD). I don't care (or want to care) about the size of each image.

All dockers will install in this storage. I have mine set to 20GB. I have 10 dockers installed and it is using just over 10GB currently.

 

Note that this will not include docker application data, such as the Plex library. Each docker's application data will reside in unRAID storage somewhere. Most people make a cache-only share for use by all their dockers application data.

Link to comment

Ok - it seems an odd decision but the technical reasons make sense(ish).

 

I wish the size limit were optional as I really don't want to allocate several GB to a simple NGINX container. I just simply want all the Docker stuff to live on my cache drive (which is an SSD). I don't care (or want to care) about the size of each image.

 

it's the total storage size allocated for all your dockers combined, not for each individual docker.

Link to comment

 

 

But the best thing is the xml template storage. You can delete the image entirely, create a new one, and then recreate all your dockers with the same settings in under a minute

Yes, that is nice but has nothing to do with the BTRFS docker image usage.

 

Well I wasn't really responding to you, your comment must have been posted while I was drafting mine  ;)

 

My second statement was referring to my first. You can move around the image, modify the size, etc. And even if you accidentally mess it up up or delete it, you can always recreate it without having to remember the original docker run command and specific parameters

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...