VelociCatTurd@lemmy.worldtoSelf-Hosted Main•How to migrate containers to portainer so I can get rid of the "limited control" portainer has over my containers?English
1·
1 year agoI would spend the time now to get docker-compose files for each of your containers and then you can use the stack feature in Portainer to recreate the containers. You would then have full access. On the flip side, if you decide to move off of Portainer in the future, having those docker compose files are going to allow a much greater flexibility.
It took me a few hours to get docker-compose files created for all my containers, but now it’s so easy to create a new one, I just copy an existing one and change some of the variables around.
My philosophy is this: all of the containers are deployed via docker-compose files, which are backed up. Any persistent data is presented over NFS to the containers using volumes. This way, in the event that the docker server blows up I just install docker, move the docker-compose files over, docker-compose up, and pretty much done.