I am trying to have a docker container hosting an app with Socketcan access, but for security reasons I do not want to expose the hosts network stack. (e.g docker run --net=host …)
It seems that there might be some solution (after reading some news on wiki.automotivelinux.org, but I cant find any manual.
Have you found any solution? I’d be interested in this as well. Would like to run 2 programs inside a container which would communicate through Socketcan.
I found a soultion! I got CAN working in a docker container using this docker plugin. Only works with docker on a host that has the vcan kernel module (aka Linux). Works for me in a debian VM.