Skip to content

Commit 16e0f59

Browse files
authored
add instructions for running container locally (#43)
* add instructions for running locally * name code block
1 parent 297319e commit 16e0f59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deploy-container/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ An container image built for deploying code-server.
99

1010
Docker Hub: `bencdr/code-server-deploy-container`
1111

12+
To run the container locally, you can use:
13+
14+
```console
15+
docker run -p 127.0.0.1:8080:8080 \
16+
-v "$PWD/project:/home/coder/project" \
17+
-u "$(id -u):$(id -g)" \
18+
-e "DOCKER_USER=$USER" \
19+
-e "PASSWORD=12345" \
20+
-it bencdr/code-server-deploy-container:latest
21+
```
22+
1223
## Modifying your code-server environment
1324

1425
To update your code-server version, modify the version number on line 2 in your Dockerfile. See the [list of tags](https://hub.docker.com/r/codercom/code-server/tags?page=1&ordering=last_updated) for the latest version.

0 commit comments

Comments
 (0)