Failing to load drivers udev, modprobe fails in docker for Ubuntu 1804

Hi all,

I have been trying to install docker with peak driver for CAN communication on Ubuntu 1804 image. Here is my setup dockerfile with just Ubuntu 1804 and peak drivers: https://github.com/mjm522/docker_peak. When I run the script ./install.sh, it works till it fails to load the drivers. I have udev already installed in the kernel. Same happens when I manually install them on the docker as well. However, there is no error when I install it directly on a Ubuntu machine directly. I have posted this in the PEAK driver forum and they said it is mainly a docker issue. It would be really helpful if someone could please say what is going wrong here. This are the errors I get.

make[2]: Leaving directory '/tmp/p_tmp/peak-linux-driver-8.9.2/libpcanbasic/examples'
make[1]: Leaving directory '/tmp/p_tmp/peak-linux-driver-8.9.2/libpcanbasic'
make[1]: Entering directory '/tmp/p_tmp/peak-linux-driver-8.9.2/driver'
if [ yes = "yes" ]; then\
	mkdir -p /usr/local/bin;\
	cp -f udev/pcan_usb_minor_check.bash /usr/local/bin;\
	chmod 744 /usr/local/bin/pcan_usb_minor_check.bash;\
	cp -f udev/45-pcan.rules /etc/udev/rules.d;\
	echo "Info: Copied 45-pcan.rules to /etc/udev/rules.d.";\
	peak_pci=0;\
	kvernum=50000;\
	for m in peak_pci peak_pcmcia peak_usb peak_pciefd; do \
		if [ $m = "peak_pci" ] && [ $kvernum -lt 30400 ]; then\
			peak_pci=`lsmod | grep -ce peak_pci`;\
		else\
			rmmod $m 2> /dev/null;\
		fi\
	done;\
	cp -f udev/blacklist-peak.conf /etc;\
	chmod 644 /etc/blacklist-peak.conf;\
	echo "Info: mainline drivers removed and blacklisted in";\
	echo "      /etc/blacklist-peak.conf";\
	if [ $peak_pci -ne 0 ]; then\
		echo "Info: peak_pci can't be removed from the Kernel";\
		echo "      You should reboot to complete the installation.";\
 	fi\
 else\
	echo "Info: No UDEV installation found.";\
 fi
Info: Copied 45-pcan.rules to /etc/udev/rules.d.
Info: mainline drivers removed and blacklisted in
      /etc/blacklist-peak.conf
Makefile:617: recipe for target 'install_udev' failed
make[1]: Leaving directory '/tmp/p_tmp/peak-linux-driver-8.9.2/driver'
make[1]: *** [install_udev] Error 2
Makefile:109: recipe for target 'install' failed
make: *** [install] Error 2
sudo: modprobe: command not found
tar: A lone zero block at 12035