usbip-ssh-docker
usbip-ssh-docker copied to clipboard
Depmod
depmod: ERROR: could not open directory /lib/modules/4.9.36-moby: No such file or directory
I understand that you said "when ran properly with docker-compose" but do you have an example yaml?
Hi @DirtyJerz , I still haven't finished this. The python file works well by binding all usb ports every 5 second, i still have to wrap in in a docker container. not hard. Here an example of usb totally shared to docker https://github.com/fermiumlabs/data-chan-nodejs/blob/master/.drone.yml
Then i still need to setup a second container with auto-ssh. After the two works, a docker-compose file (possibly with automatic restart) is easy to make. The two container should work together well if the ports are shared correctly between them.
The dockerfile is still untested.
If you're interested in this we could get it to work together. I'm confident using this double-container solution with docker-compose is an extremely solid solution.
I'd be willing to give it a go when I have some free time but I really just need a way to get usbip working with my instruments. (Agilent B2902, Photoresearch 730, Agilent Usb-GPIB controller+E1476A, USB Camera, and Moog Anamatics motors). Trying to containerize my test and measurement software.
Also, why do you get rid of the usbip packages and go for the kernel tools version?
the usbip package in ubuntu is old, the one in the kernel tools is updated
I don't think there is still much left to do. We need to fix a bit of things in the autossh:
- fixing environmental variables
- mounting the key container
- getting autossh to not fork a process and quit
Can I get some explanation on how to get it working?
To be honest i abandoned this. There are a couple commercially available solutions to share USB on a server and they're cheap and work quite well.