@@ -11,14 +11,21 @@ the following command:
11
11
12
12
``` sh
13
13
export CODER_DATA=$HOME /.config/coderv2-docker
14
+ export DOCKER_GROUP=$( getent group docker | cut -d: -f3)
14
15
mkdir -p $CODER_DATA
15
16
docker run --rm -it \
16
17
-e CODER_TUNNEL=true \
17
18
-v $CODER_DATA :/home/coder/.config \
18
19
-v /var/run/docker.sock:/var/run/docker.sock \
20
+ --group-add $DOCKER_GROUP \
19
21
ghcr.io/coder/coder:latest
20
22
```
21
23
24
+ ** <sup >Note:</sup >** <sup >Coder runs as a non-root user, we use ` --group-add ` to
25
+ ensure Coder has permissions to manage Docker via ` docker.sock ` . If the host
26
+ systems ` /var/run/docker.sock ` is not group writeable or does not belong to the
27
+ ` docker ` group, the above may not work as-is.</sup >
28
+
22
29
Coder configuration is defined via environment variables.
23
30
Learn more about Coder's [ configuration options] ( ../admin/configure.md ) .
24
31
@@ -55,7 +62,7 @@ an PostgreSQL container and volume.
55
62
3 . Start Coder with ` docker-compose up ` :
56
63
57
64
In order to use cloud-based templates (e.g. Kubernetes, AWS), you must have an external URL that users and workspaces will use to connect to Coder.
58
-
65
+
59
66
For proof-of-concept deployments, you can use [ Coder's tunnel] ( ../admin/configure.md#tunnel ) :
60
67
61
68
``` sh
@@ -74,7 +81,7 @@ an PostgreSQL container and volume.
74
81
75
82
> Without ` CODER_ACCESS_URL ` or ` CODER_TUNNEL ` set, Coder will bind to ` localhost:7080 ` . This will only work for Docker-based templates.
76
83
77
- 4 . Visit the web ui via the configured url. You can add ` /login ` to the base url to create the first user via the ui.
84
+ 4 . Visit the web ui via the configured url. You can add ` /login ` to the base url to create the first user via the ui.
78
85
79
86
5 . Follow the on-screen instructions log in and create your first template and workspace
80
87
0 commit comments