| display_name | Dev Docker with Cursor IDE | |||
|---|---|---|---|---|
| description | Provision Docker containers with Cursor IDE as Coder workspaces | |||
| icon | ../../../site/static/icon/docker.png | |||
| maintainer_github | coder | |||
| verified | true | |||
| tags |
|
Provision Docker containers with Cursor IDE as Coder workspaces with this template.
The VM you run Coder on must have a running Docker socket and the coder user must be added to the Docker group:
# Add coder user to Docker group
sudo adduser coder docker
# Restart Coder server
sudo systemctl restart coder
# Test Docker
sudo -u coder docker psThis template provisions the following resources:
- Docker image (built by Docker socket and kept locally)
- Docker container pod (ephemeral)
- Docker volume (persistent on
/home/coder) - Cursor IDE (for modern JavaScript and AI-assisted development)
- Node.js runtime (for JavaScript and TypeScript development)
- Git repository cloning (for immediate access to your code)
This means, when the workspace restarts, any tools or files outside of the home directory are not persisted. To pre-bake tools into the workspace (e.g. python3), modify the container image. Alternatively, individual developers can personalize their workspaces with dotfiles.
This template automatically installs and configures Cursor, a modern code editor built on VSCode with AI capabilities. Cursor will automatically open to your cloned Git repository.
Node.js is pre-installed in the workspace for JavaScript and TypeScript development.
When creating a workspace, you'll be prompted for a Git repository URL. The repository will be automatically cloned into /home/coder/workspace/[repo-name] and Cursor will open directly to this folder.
Note This template is designed to be a starting point! Edit the Terraform to extend the template to support your use case.
Edit the Dockerfile and run coder templates push to update workspaces.