Skip to content

Change the location of the user data folder (~/.local/share/code-server) #6829

Answered by code-asher
aghasemi asked this question in General
Discussion options

You must be logged in to vote

Is it possible to modify where user data are stored.

Yes, you can with --user-data-dir. Example:

code-server --user-data-dir /tmp/my-data

is it also possible in a Docker image derived from the official codercom/code-server?

I think it will depend on the image. With the official image you can just do:

docker run codercom/code-server --user-data-dir /tmp/my-data

So that might work for unofficial images derived from ours as well.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aghasemi
Comment options

@code-asher
Comment options

@code-asher
Comment options

Answer selected by aghasemi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants