22
How hard is it to move Docker containers to another system?
(lemmy.dbzer0.com)
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
Docker is helpful, but won't be perfect since there's no built-in migration. You'll have to move any mounted directories like config and data and stuff. Docker is designed to be able spin up and down constantly, so it doesn't really hold any persistent data in the image itself.
Also, I know you want free, but have you considered unraid? If you really need free you can try truenas or freenas or whatever, but a user friendly linux distro isn't usually going to be too much overhead. I'd highly recommend unraid as a good option for users who need an easier way to work with all of their containers but don't want to go as far as setting up a kubernetes cluster or something.
Thanks for replying, sorry about the delay in replying back :)
That's a shame about Docker. I haven't used it properly yet, and was under the impression that it works like a virtual machine, so could be moved or cloned to another system.
I've just had a look at Unraid, and while it does look good, it's not right for me for now. My drives are full of media and I can't afford a spare for now (the media is replaceable if anything goes wrong)
Docker is very easy to migrate, all you do is copy the data and compose file over.
What he said ^. There's no automation, you just have to make sure you catch everything is all. I may have made it sound more difficult than I intended, sorry about that!
No worries, I managed to misunderstand, and explain myself badly in the same post, so I'm certainly not going to give anyone else grief for it :D
Apart from my home directory, most of my data is on separate drives to the OS, and ideally would be staying like that. If I can just transfer the container and config, I'd be happy :)
Best of luck!!
Thank you :)