Runs the VirtualHere Client inside a Docker container so you can access USB devices inside!
9.5K
The VirtualHere client docker image allows you to use USB devices inside a container.
DockerFile here: https://github.com/virtualhere/docker/blob/master/Dockerfile
Instructions for using this image:
(This works under Windows and Mac, for Linux use KVM containers https://github.com/gotoz/runq/)
docker run -td --privileged --name vhclient virtualhere/virtualhere-client:latest ./vhclientx86_64For example:
C:\Users\michael\docker-virtualhere-client>docker exec vhclient ./vhclientx86_64 -t "MANUAL HUB ADD,192.168.0.16"
OK
C:\Users\michael\docker-virtualhere-client>docker exec vhclient ./vhclientx86_64 -t "LIST"
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)
Desktop Hub (SERVER:7575)
--> Portable SSD T5 (SERVER.82)
--> Token JC (SERVER.73) (In-use by: (michael) at 192.168.0.21)
--> AURA Custom Human interface (SERVER.111)
--> Corsair Link TM USB Dongle (SERVER.19)
Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
Reverse SSL Lookup currently off
VirtualHere Client not running as a service
C:\Users\michael\docker-virtualhere-client>docker exec vhclient ./vhclientx86_64 -t "USE,server.111"
OK
C:\Users\michael\docker-virtualhere-client>docker exec vhclient lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 0b05:1867
Notes:
The output of the lsusb command confirms the device is attached. (0b05:1867 is the device we used by issuing the USE,server.111 command)
You would need the normal USB device drivers in your docker container. Eg. usb-storage if you want to use a USB disk, usb-serial if you want to use a serial adapter etc , just like a normal linux setup
Content type
Image
Digest
Size
4.2 MB
Last updated
over 7 years ago
docker pull virtualhere/virtualhere-client