Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent updates to portainer update script broke portainer #492

Open
dkarter opened this issue Aug 26, 2024 · 0 comments
Open

Recent updates to portainer update script broke portainer #492

dkarter opened this issue Aug 26, 2024 · 0 comments

Comments

@dkarter
Copy link

dkarter commented Aug 26, 2024

A recent update appears to have changed the location that portainer uses to store data.

Users that ran the update script may find themselves with a fresh instance of portainer that does not contain any of their apps or settings.

For anyone encountering this, here is how I fixed it:

Something like

# stop portainer
docker container ls | grep portainer | awk '{ print $1 }' | x^Cgs docker container stop

# move the new folder for portainer in case you ran it since the update
sudo mv /portainer/Files/AppData/Config/portainer/ /tmp/backup-new-portainer

# copy the files from the old volume to the new location
docker run --rm -v portainer_data:/portainer_data -v /portainer/Files/AppData/Config/portainer:/new_portainer busybox sh -c 'cp -r portainer_data/* /new_portainer/'

# start portainer again
docker start portainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant