Skip to content

Commit 273cd2b

Browse files
committed
doc: Improve docker example to mount in $HOME for easy config access
I'm surprised no one has asked any questions about this.
1 parent a730bec commit 273cd2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/install.md

+4
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ code-server
174174
# It will also mount your current directory into the container as `/home/coder/project`
175175
# and forward your UID/GID so that all file system operations occur as your user outside
176176
# the container.
177+
#
178+
# Your $HOME is mounted at $HOME within the container to ensure you can easily access
179+
# your code-server config in ~/.config/code-server/config.json
177180
docker run -it -p 127.0.0.1:8080:8080 \
181+
-v "$HOME:/home/coder" \
178182
-v "$PWD:/home/coder/project" \
179183
-u "$(id -u):$(id -g)" \
180184
codercom/code-server:latest

0 commit comments

Comments
 (0)