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
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,26 @@ Coder with Docker has the following advantages:
17
17
18
18
The Coder server binds to port 3000 by default. Use `--address :<port>` to customize it!
19
19
20
+
Use the [Coder tunnel](../admin/configure.md#tunnel) for a public URL:
21
+
22
+
```bash
23
+
coder server
24
+
```
25
+
26
+
Or set an [access URL](../admin/configure.md#access-url) to run entirely locally:
27
+
20
28
```bash
21
-
$ coder server
29
+
coder server --access-url=http://localhost:3000 --address=:3000
22
30
```
23
31
24
-
1. Run `coder login http://localhost:3000`in a new terminal and follow the
32
+
1. Run `coder login <access url>`in a new terminal and follow the
25
33
interactive instructions to create your user.
26
34
27
35
1. Pull the "Docker" example template using the interactive `coder templates init`:
28
36
29
37
```bash
30
-
$ coder templates init
31
-
$ cd docker
38
+
coder templates init
39
+
cd docker
32
40
```
33
41
34
42
1. Push up the template with `coder templates create`
@@ -53,6 +61,16 @@ Coder with Docker has the following advantages:
53
61
1. If you want to modify the Docker image or template, edit the files in the
54
62
previously created `./docker` directory, then run `coder templates push`.
55
63
64
+
## Troubleshooting
65
+
66
+
### Docker-based workspace is stuck in "Connecting..."
67
+
68
+
Ensure you have an externally-reachable `CODER_ACCESS_URL` set. See [troubleshooting templates](../templates.md#creating-and-troubleshooting-templates) for more steps.
69
+
70
+
### Permission denied while trying to connect to the Docker daemon socket
71
+
72
+
See Docker's official documentation to [Manage Docker as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user).
0 commit comments