Udevadm monitor in docker file

Ah, found the answer but it doesn’t solve anything. I can run something which is clearly not preferred according to official docs

RUN nohup bash -c "udevadm monitor &" && sleep 4

But the problem I am facing, is that I need peripherals of the host system, during build time of the image. And that seems not to be supported.

After some googling I found the best way was to simply don’t execute the post inst actions. I stole this from stackoverflow

RUN dpkg --unpack /home/Downloads/JLink_Linux_V766c_x86_64.deb
RUN rm /var/lib/dpkg/info/jlink.postinst -f
RUN dpkg --configure jlink
RUN apt install -yf 

That works perfectly for me

1 Like