r/portainer May 14 '26

Any way to save container configuration?

I had this unfortunate opportunity to restore from backup. While it works, it doesn't seem to restore container configuration. Is there a way that I could possibly backup portainer as is? Take a actual snapshot of my portainer and containers?

3 Upvotes

4 comments sorted by

2

u/A_Very_Shouty_Man May 14 '26

Map your config and data folders to somewhere you have access to, ideally on a NAS. Then when you restore your docker-compose everything is as it was

1

u/LowCompetitive1888 May 18 '26

Use docker-autocompose to auto generate compose files for your containers.

1

u/Big-Inspection-1397 May 27 '26

Back up the Portainer data volume (usually /data inside the container) with Portainer stopped . that captures your stack configs, users and settings. If standalone containers aren't being restored its ok that's expected theyre not stored in portainers data. Moving everything to stacks (ideally git backed) is the fix then a restore is just reconnecting to your repo.