Assuming Linux with SystemD,
sudo systemctl edit docker
[Unit]
RequiresMountsFor=/path/to/external/volume
You can use a SATA caddy with its own power supply if your basic USB adaptor isn't able to draw enough.
Assuming Linux with SystemD,
sudo systemctl edit docker
[Unit]
RequiresMountsFor=/path/to/external/volume
You can use a SATA caddy with its own power supply if your basic USB adaptor isn't able to draw enough.
Haven't seen this option before, will try today!
Thanks!
I wanted to plug one of them over USB, but it seems that docker just doesn't like to have volumes on external drives. AFAIK docker starts before the drive is fully mounted, preventing it from doing so. I couldn't find any reliable way to work around this (but I'm open to suggestions!).
You haven't said what operating-system you're using, how your mount was configured, or how you're starting docker or your containers. An external drive is the normal way to do this, though, and I do it on Linux with ZFS drives and docker-compose auto-starting the containers and it works fine.
You mean thinkcentre tiny?
Who are we?
We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.
We are one. We are legion. And we're trying really hard not to forget.
-- 5-4-3-2-1-bang from this thread