Skip to content

Commit e3d30a6

Browse files
sharkymarkKatie Horne
and
Katie Horne
authored
CFD: explain how templates can be used (#891)
* CFD: explain how templates can be used * chore: edit text Co-authored-by: Katie Horne <katie@coder.com>
1 parent e497910 commit e3d30a6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

setup/docker.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,35 @@ Coder will now run in the background.
196196
For more detailed information on the Docker Compose file, please see
197197
[Docker's docs](https://docs.docker.com/compose/compose-file/compose-file-v3/).
198198

199+
## Coder templates
200+
201+
You can use
202+
[templates](https://coder.com/docs/coder/latest/workspaces/workspace-templates/templates#workspace-template-sample)
203+
with Coder for Docker to define how Coder builds your workspaces.
204+
205+
To use a standard Coder workspace template for Docker:
206+
207+
1. Change the `workspace.type` and`workspace.specs` to `docker`
208+
1. Remove any Kubernetes-specific `workspace.specs.kubernetes values` (e.g.,
209+
`cpu`, `memory`, `gpu`)
210+
211+
Your configuration file will look something like the following:
212+
213+
```yaml
214+
version: 0.2
215+
workspace:
216+
type: docker
217+
specs:
218+
docker:
219+
image:
220+
value: index.docker.io/codercom/enterprise-intellij:ubuntu
221+
container-based-vm:
222+
value: false
223+
configure:
224+
start:
225+
...
226+
```
227+
199228
## Ensure that user IPs show up in the audit logs
200229

201230
If you would like users' IP addresses to show up in the audit logs (i.e.,

0 commit comments

Comments
 (0)