this post was submitted on 13 Jun 2023
-6 points (12.5% liked)
Docker
1 readers
1 users here now
Everything about Docker! Here you can post news, hints or what else you can think of. The mod @Djokkum is pretty knowledgeable on the topic (and doesn't bite most of the time), so feel free to post any questions as well.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not familiar with netbox, so there may be nuance that I'm likely to miss. But I guess the first thing to do is understand exactly what you have. Are your containers deployed using docker compose? If so, just copy the compose file over to the new host, then docker compose up -d and your container stack should be running just the same. If your not using compose yet, there's a tool that can generate a compose file from running docker containers. That could make life easier.
The possibly more complicated bit is any persistent data - where is this? Is it in bind mounts on the host? Or volume mounts? Things like secrets and configuration will also need to be copied over and put in the right places, as just a compose file alone will only get you a greenfield setup
It starts with a docker-compose file. There's lots of persistent data and it's in volume mounts. I don't know if I'm making a lot of sense, I'm new to Docker and don't know all the right words to use yet.
If you have more than a few machines and are starting to lose track of which cables go where, and which IPs you're using, netbox is a good resource.
https://github.com/netbox-community/netbox
If you are comfortable with it you could share the contents of your docker-compose, that would make it a bit easier for us to give some pointers. Just be sure to redact any sensitive information (usernames, passwords, IP adresses etc.)
The volumes that start with ./ I can deal with. It's those 3 at the end I don't know about.