-
Notifications
You must be signed in to change notification settings - Fork 6k
How to persist the settings.json? #965
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
Comments
I would like to ask this as well. So far, what I have done (haven't really tried) is to mount a setting.json as a volume, then symlink it to the path that code server uses to store settings.json I think this can be done by a docker file, but I'm using docker-compose for this so I'm still experimenting. |
@sr229 , thanks for the fast response. When I try to bind it to this, such as /home/coder/.local/share/code-server/User/settings.json, it results in an error with the container not being able to create other folders in .local
The docker-compose file in question
|
That's weird. I'll go ahead and try to fix that in my end and PR it. I'll send you a patch file later for the Dockerfile while you wait so you can get up to speed. |
Thanks for the quick response @sr229 ! |
Just an update,
|
Ah I see! I do believe mounting the entire |
Documented the process now so other folks won't encounter the same problem. Thanks for reporting. |
Thanks for the update @sr229 ! |
maybe image has changed a bit in terms of FS organization but I just bind mounted the /config directory in the container and that gets it all including settings.json which is in
|
Every time I rerun the app, looks like it removes all the changes done in the previous session. Even it don't save the font size changes. I installed couple of packages but when I rerun the app, it looks like runs as a fresh app. Is there any way to save the settings.json?
The text was updated successfully, but these errors were encountered: