I did some testing on my side and I don’t seem to have any issues, similar to your setup.
Some observations however. First of all your dockerfile is missing RUN usermod -a -G gpio,spidev,dialout,i2cdev,input torizon, for some reason.
Also the devices config option is really only meant for devices/files in /dev for things in /sys you want to bindmount them into the container via the volumes config option.
Here’s the details of my setup to compare:
Container run command:
docker run --volume /sys:/sys --device /dev/spidev3.0:/dev/spidev3.0 --device /dev/i2c-0:/dev/i2c-0 --device /dev/i2c-1:/dev/i2c-1 --device /dev/i2c-4:/dev/i2c-4 --device /dev/gpiochip0:/dev/gpiochip0 --device /dev/gpiochip1:/dev/gpiochip1 --device /dev/gpiochip2:/dev/gpiochip2 --device /dev/gpiochip3:/dev/gpiochip3 --device /dev/gpiochip4:/dev/gpiochip4 --device /dev/gpiochip5:/dev/gpiochip5 --device /dev/gpiochip6:/dev/gpiochip6 test_arm32v7-debian-python3_bullseye_release_67274fc6-177a-4f59-9c08-f0a210813d55
Inside the container:
torizon@8765e7faf8b6:/test$ ls -l /dev/
total 0
lrwxrwxrwx 1 root root 13 Mar 5 19:05 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Mar 5 19:05 full
crw-rw-r-- 1 root gpio 254, 0 Mar 5 19:05 gpiochip0
crw-rw-r-- 1 root gpio 254, 1 Mar 5 19:05 gpiochip1
crw-rw-r-- 1 root gpio 254, 2 Mar 5 19:05 gpiochip2
crw-rw-r-- 1 root gpio 254, 3 Mar 5 19:05 gpiochip3
crw-rw-r-- 1 root gpio 254, 4 Mar 5 19:05 gpiochip4
crw-rw-r-- 1 root gpio 254, 5 Mar 5 19:05 gpiochip5
crw-rw-r-- 1 root gpio 254, 6 Mar 5 19:05 gpiochip6
crw-rw-r-- 1 root i2cdev 89, 0 Mar 5 19:05 i2c-0
crw-rw-r-- 1 root i2cdev 89, 1 Mar 5 19:05 i2c-1
crw-rw-r-- 1 root i2cdev 89, 4 Mar 5 19:05 i2c-4
drwxrwxrwt 2 root root 40 Mar 5 19:05 mqueue
crw-rw-rw- 1 root root 1, 3 Mar 5 19:05 null
lrwxrwxrwx 1 root root 8 Mar 5 19:05 ptmx -> pts/ptmx
drwxr-xr-x 2 root root 0 Mar 5 19:05 pts
crw-rw-rw- 1 root root 1, 8 Mar 5 19:05 random
drwxrwxrwt 2 root root 40 Mar 5 19:05 shm
crw-rw-r-- 1 root spidev 153, 0 Mar 5 19:05 spidev3.0
lrwxrwxrwx 1 root root 15 Mar 5 19:05 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Mar 5 19:05 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Mar 5 19:05 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root 5, 0 Mar 5 19:05 tty
crw-rw-rw- 1 root root 1, 9 Mar 5 19:05 urandom
crw-rw-rw- 1 root root 1, 5 Mar 5 19:05 zero
config.yaml and docker release file
I’d suggest quickly redoing everything cause something must be amiss here. Also make sure you’re not directly editing config.yaml. This file isn’t meant to be edited directly.
Best Regards,
Jeremias