Moving to Another Machine #476
eduncan911
started this conversation in
General
Replies: 1 comment
-
This is an important question. We want to move our netbox-docker from the test environment to production (two different hosts). An instruction set to do this would be extremely helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone scripted a way to export all of the images and volumes to move and import into another machine?
I've done it a few times for one off docker apps. There seems to be a lot going on with this docker-compose though so figured I'd ask first.
Images could be pulled down again. However, attaching volumes requires containers to be built first - a chicken or egg thing since this compose builds both.
I'm guessing, the process would be:
Hopefully that downloads the same image you previously had. Unfortunately, netbox-docker isn't tagging their image. It's always running as
latest
which could pull down a newer version. What guarantee doesnetbox-docker
give to always have an upgrade path of non-breaking changes from any previous version tolatest
? Since I've been doing exactly that for the better part of a decade, I know how difficult that can be across dozens of services. Hats off to the community if it's an always forward-looking auto-upgrade path (e.g. the postgres sql patches to bring it to current). But it's extremely rare to see that in the wild.Now I think the tricky part is that you need to detach and delete the new volumes that were just created on the new machine Then, you're going to import the old volumes, and attach them to the existing containers you just built.
I haven't looked yet if anything is written to disk to be moved. But that would be trivial - just needs to be noted.
Beta Was this translation helpful? Give feedback.
All reactions