You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart/docker.md
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,28 @@ Coder with Docker has the following advantages:
15
15
16
16
1. Run Coder with Docker.
17
17
18
-
```shell
18
+
**Linux:**
19
+
20
+
```sh
19
21
export CODER_DATA=$HOME/.config/coderv2-docker
20
22
export DOCKER_GROUP=$(getent group docker | cut -d: -f3)
21
23
mkdir -p $CODER_DATA
22
24
docker run --rm -it \
23
-
-v $CODER_DATA:/home/coder/.config \
24
-
-v /var/run/docker.sock:/var/run/docker.sock \
25
-
--group-add $DOCKER_GROUP \
26
-
ghcr.io/coder/coder:latest
25
+
-v $CODER_DATA:/home/coder/.config \
26
+
-v /var/run/docker.sock:/var/run/docker.sock \
27
+
--group-add $DOCKER_GROUP \
28
+
ghcr.io/coder/coder:latest
29
+
```
30
+
31
+
**macOS:**
32
+
33
+
```sh
34
+
export CODER_DATA=$HOME/.config/coderv2-docker
35
+
mkdir -p $CODER_DATA
36
+
docker run --rm -it \
37
+
-v $CODER_DATA:/home/coder/.config \
38
+
-v /var/run/docker.sock:/var/run/docker.sock \
39
+
ghcr.io/coder/coder:latest
27
40
```
28
41
29
42
> This will use Coder's tunnel and built-in database. See our [Docker documentation](../install/docker.md) for other configuration options such as running on localhost, using docker-compose, and external PostgreSQL.
0 commit comments