5dd436c19b
Fixes #12588 |
||
---|---|---|
.. | ||
README.md | ||
main.tf |
README.md
display_name | description | icon | maintainer_github | verified | tags | ||||
---|---|---|---|---|---|---|---|---|---|
Incus System Container with Docker | Develop in an Incus System Container with Docker using incus | ../../../site/static/icon/lxc.svg | coder | true |
|
Incus System Container with Docker
Develop in an Incus System Container and run nested Docker containers using Incus on your local infrastructure.
Prerequisites
-
Install Incus on the same machine as Coder.
-
Allow Coder to access the Incus socket.
-
If you're running Coder as system service, run
sudo usermod -aG incus-admin coder
and restart the Coder service. -
If you're running Coder as a Docker Compose service, get the group ID of the
incus-admin
group by runninggetent group incus-admin
and add the following to yourcompose.yaml
file:services: coder: volumes: - /var/lib/incus/unix.socket:/var/lib/incus/unix.socket group_add: - 996 # Replace with the group ID of the `incus-admin` group
-
-
Create a storage pool named
coder
andbtrfs
as the driver by runningincus storage create coder btrfs
.
Usage
Note: this template requires using a container image with cloud-init installed such as
ubuntu/jammy/cloud/amd64
.
- Run
coder templates init -id incus
- Select this template
- Follow the on-screen instructions
Extending this template
See the lxc/incus Terraform provider documentation to add the following features to your Coder template:
- HTTPS incus host
- Volume mounts
- Custom networks
- More
We also welcome contributions!