Ancestors

Written by Passerby6497@lemmy.world on 2025-01-05 at 01:58

Is it possible to run a docker host that has no harddrive?

https://lemmy.world/post/23894555

=> More informations about this toot | More toots from Passerby6497@lemmy.world

Written by Scrubbles on 2025-01-05 at 02:11

Kind of, but probably not. I started writing this and was like “totally it could be stateless”. Docker runs stateless, and I believe when it starts it is still stateless (or at least could be mounted on a ramdrive) - but then I started thinking, and what about the images? Have to be downloaded and ran somewhere, and that’s going to eat ram quickly. So I amend to you don’t need it to be stateful, you could have an image like you talked about that is loaded every time (that’s essentially what kubernetes does), but you will still need space somewhere as scratch drive. A place docker will places images and temporary file systems while it’s running.

For state, check out docker’s volume backings here: docs.docker.com/engine/storage/volumes/. You could use nfs to another server as an example for your volumes. Your volumes would never need to be on your “app server”, but instead could be loaded via nfs from your storage server.

This is all nearing into kubernetes territory though. If you’re thinking about netboot and automatically starting containers, and handling stateless volumes and storing volumes in a way that are synced with a storage server… it might be time for kubernetes.

=> More informations about this toot | More toots from scrubbles@poptalk.scrubbles.tech

Written by umami_wasabi on 2025-01-05 at 02:15

I guess you can also use NFS/iSCSI for images too?

=> More informations about this toot | More toots from umami_wasbi@lemmy.ml

Written by ddh on 2025-01-05 at 11:15

Correct, I run docker on a compute host that has no local storage. The host’s disks are on iSCSI LUNs.

=> More informations about this toot | More toots from DarkDarkHouse@lemmy.sdf.org

Written by Passerby6497@lemmy.world on 2025-01-05 at 12:25

That’s really good to know. Do you ever have issues writing database files on those disks? Database files on nfs mounts have been the bane of my existence.

=> More informations about this toot | More toots from Passerby6497@lemmy.world

Toot

Written by ddh on 2025-01-06 at 05:56

FWIW I run only very small databases e.g., sqlite ones shipped with applications, but haven’t had any problems in about a year now, and nothing that wasn’t recoverable from backup.

=> More informations about this toot | More toots from DarkDarkHouse@lemmy.sdf.org

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113779866583856378
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
312.547107 milliseconds
Gemini-to-HTML Time
1.675157 milliseconds

This content has been proxied by September (3851b).