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
Changing to rootless image triggers gitea to offer a new install - Can i change to keep my data? #21647
Comments
There are some slight differences in the places that the rootless docker and the root docker stores things. I can't start docker right now to check but you should be able to pull some imges and create a test bed to see how to change your compose file etc. |
So there's some basic information here: https://docs.gitea.io/en-us/install-with-docker-rootless/#upgrading-from-standard-image But we can examine things a bit further, if we run a
Whereas the rootless docker uses:
So how would one convert from the root docker to the rootless docker?
Why do we have to do this? Unfortunately these decisions were made a long time ago and it would be very breaking to change things at this point. If we could it would be good to realign things to try to make things more consistent but I'm not sure how to get there. |
Thanks for the excellent help, I modified docker compose and now it works perfectly even with a rootless image!
I'm just writing as an interesting fact that the whole problem was brought up because the separated ssh server does not accept my ssh key while the builtin ssh server does. The error message was:
|
SSH problem: Golang's bug Use other SSH key formats. |
Description
I use docker image 1.17.3. I would like to switch to 1.17.3-rootless. After starting, gitea offers a new install on web surface.
Is there a way to keep my data?
Gitea Version
1.17.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
With Docker compose.
# cat .env GITEA_VERSION=1.17.3 HTTP_PORT=3000 SSH_PORT=2222 DATA=./data
Database
No response
The text was updated successfully, but these errors were encountered: