mirror of https://github.com/coder/code-server.git
Improve docker install formatting
This commit is contained in:
parent
73b2ff0945
commit
181bad9563
|
@ -60,16 +60,16 @@ brew services start code-server
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# This will start a code-server container and expose it at http://127.0.0.1:8080.
|
||||||
|
# It will also mount your current directory into the container as `/home/coder/project`
|
||||||
|
# and forward your UID/GID so that all file system operations occur as your user outside
|
||||||
|
# the container.
|
||||||
docker run -it -p 127.0.0.1:8080:8080 \
|
docker run -it -p 127.0.0.1:8080:8080 \
|
||||||
-v "$PWD:/home/coder/project" \
|
-v "$PWD:/home/coder/project" \
|
||||||
-u "$(id -u):$(id -g)" \
|
-u "$(id -u):$(id -g)" \
|
||||||
codercom/code-server:latest
|
codercom/code-server:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
This will start a code-server container and expose it at http://127.0.0.1:8080. It will also mount
|
|
||||||
your current directory into the container as `/home/coder/project` and forward your UID/GID so that
|
|
||||||
all file system operations occur as your user outside the container.
|
|
||||||
|
|
||||||
### Self contained releases
|
### Self contained releases
|
||||||
|
|
||||||
We publish self contained archives for every release on [github](https://github.com/cdr/code-server/releases).
|
We publish self contained archives for every release on [github](https://github.com/cdr/code-server/releases).
|
||||||
|
|
Loading…
Reference in New Issue