Files
coder/examples/templates/docker
Mathias Fredriksson b2a16d46c6 chore: Unify Docker terraform templates (#4952)
Changes to terraform templates:

* Remove DNS (this can interfere with users running their own DNS
  servers)
* Remove `lower()` restriction from hostnames so that it will show the
  name set by the user, as-is (there is no restriction on upper case
  letters in hostnames)
* Remove superfluous `trap` in entrypoints, this is already handled by
  the init script
* Switch from `command` to `entrypoint` as the latter can support more
  Docker images out-of-the-box
2022-11-08 18:52:19 +02:00
..

name, description, tags
name description tags
Develop in Docker Run workspaces on a Docker host using registry images
local
docker

docker

To get started, run coder templates init. When prompted, select this template. Follow the on-screen instructions to proceed.

Editing the image

Edit the Dockerfile and run coder templates push to update workspaces.

code-server

code-server is installed via the startup_script argument in the coder_agent resource block. The coder_app resource is defined to access code-server through the dashboard UI over localhost:13337.

Extending this template

See the kreuzwerker/docker Terraform provider documentation to add the following features to your Coder template:

  • SSH/TCP docker host
  • Registry authentication
  • Build args
  • Volume mounts
  • Custom container spec
  • More

We also welcome contributions!