@@ -15,8 +15,6 @@ Beginning with v1.30.0, the default is **self-contained workspace builds**,
15
15
though site managers can toggle this feature off and opt for remote builds
16
16
instead.
17
17
18
- > Coder plans to deprecate remote workspace builds in the future.
19
-
20
18
To toggle self-contained workspace builds:
21
19
22
20
1 . Log into Coder.
@@ -29,7 +27,31 @@ To toggle self-contained workspace builds:
29
27
> Build errors are typically more verbose for remote builds than with
30
28
> self-contained builds.
31
29
32
- ## Known issues
30
+ ## Troubleshooting
31
+
32
+ In certain cases, your workspace may not trust the ` coderd ` TLS certificate.
33
+ This will result in the error below:
34
+
35
+ ``` console
36
+ stream logs from workspace: Failed to create Container-based Virtual Machine
37
+ ```
38
+
39
+ To resolve this, you will need to copy the ` coderd ` TLS certificate into
40
+ your Docker image's certificate trust store. Below are examples for doing so,
41
+ for the major distributions:
42
+
43
+ ### Debian and Ubuntu distributions
44
+
45
+ ``` Dockerfile
46
+ RUN apt-get install -y ca-certificates
47
+ COPY my-cert.pem /usr/local/share/ca-certificates/my-cert.pem
48
+ RUN update-ca-certificates
49
+ ```
50
+
51
+ ### CentOS, Fedora, RedHat distributions
33
52
34
- At this time, Coder does not support certificate injection with self-contained
35
- workspace builds.
53
+ ``` Dockerfile
54
+ RUN yum install ca-certificates && update-ca-trust force-enable
55
+ COPY my-cert.pem /etc/pki/ca-trust/source/anchors/
56
+ RUN update-ca-trust extract
57
+ ```
0 commit comments