Create a container

Create a container with the following command:

sudo incus launch images:archlinux <name> \
   -c security.nesting=true    \
   -c security.syscalls.intercept.mknod=true   \
   -c security.syscalls.intercept.setxattr=true \
   -c security.privileged: 'true' \
   -c security.idmap.isolated: 'true' \
   -c snapshots.schedule.stopped: 'true'\
   -c snapshots.schedule: '@daily' \
   -c snapshots.expiry: 2w \
   -c migration.stateful: 'true' \
   -c cluster.evacuate: live-migrate \
  -c boot.autostart: 'true'

Install Docker:

pacman -Syu
pacman -S docker docker-compose docker-buildx

Live migration support

pacmah -S criu

USB Support

Required to support USB devices.

Note: instances using USB devices cannot be migrated.

sudo pacman -S libusb qemu-hw-usb-host usbutils