Kindly take a note of each and every point I will be sending
I have two docker images one is of mysql headlessev-302-evmysqlcont and other is springboot application where its base image is debian-10.6 name is headlessev-302-projcont
these two images are in two containers but they are in same network
My host system is windows machine
one of my docker container is of debian based
5 . I have written docker-compose file to run my both containers for building i use docker-compose build and run i use docker-compose up
6.now my host system is connected to external vector hardware using usb now how can my docker container can detect that usb ?
7.use this information if required
Vector-Hardware
Vector Informatik GmbH
Port_#0001.Hub_#0002
This is my device instance path USB\VID_1248&PID_1001\5&271999B4&0&1
This is my hardware id USB\VID_1248&PID_1001&REV_0001
Docker file for mysql application
FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD=‘PASSWORD’
COPY mysqlinit.sql /docker-entrypoint-initdb.d/
EXPOSE 3306
When running Docker on Windows, do you use Docker Desktop? That creates a Linux VM in which containers are usually run, so you need to attach the USB device to the VM, too.
Accessing external vector hardware in a Docker container is a bit like connecting your computer to a special tool.
Let’s understand with an example, Imagine you have a cool gadget outside your house, and you want to use it on your computer. To make it work inside a Docker container, you have to set up a sort of digital tunnel, so your computer can talk to the gadget. It’s like creating a secret pathway. In tech terms, you might need to use specific commands or configurations to tell the Docker container how to reach out and grab information from the external hardware. Think of it as helping your computer and the gadget have a smooth conversation, even though they’re in different places. Just like giving your computer the right map to find and use the cool tool outside.
This really helped a lot Thanks for giving the clear idea can you suggest any way like that so that I can communicate with the external hardware any suggestions
Thanks for the reply will try to implement this method But I don’t think it might work
Is it possible to pass through usb from linux host to linux container is that possible ?