1.6 KiB
name | description | tags | icon | ||||
---|---|---|---|---|---|---|---|
Incus System Container with Docker | Develop in an Incus System Container with Docker using incus |
|
/icon/lxc.svg |
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 coder
and restart the Coder service. -
If you're running Coder as a Docker Compose service, get the group ID of the
incus
group by runninggetent group incus
and add the following to yourcompose.yaml
file:services: coder: volumes: - /var/lib/incus/unix.socket:/var/lib/incus/unix.socket group_add: - 997 # Replace with the group ID of the `incus` 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 lxd/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!