Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
访问docker容器内的外部读卡器(智能卡读卡器、nfc读卡器等)设备_Docker_Usb_Windows Subsystem For Linux_Smartcard Reader_Pyscard - Fatal编程技术网

访问docker容器内的外部读卡器(智能卡读卡器、nfc读卡器等)设备

访问docker容器内的外部读卡器(智能卡读卡器、nfc读卡器等)设备,docker,usb,windows-subsystem-for-linux,smartcard-reader,pyscard,Docker,Usb,Windows Subsystem For Linux,Smartcard Reader,Pyscard,我正在尝试制作一个使用读卡器的应用程序,并希望实现该解决方案。 到目前为止,我已经停靠了应用程序(Linux容器使用windows上的WSL(docker desktop)),但问题是我似乎无法访问容器内的阅读器 为了检查访问,我在运行docker exec-it/bin/bash之后使用了一个简单的lsusb命令 我已提及以下方法: 我还使用python库访问应用程序的读取器

我正在尝试制作一个使用读卡器的应用程序,并希望实现该解决方案。 到目前为止,我已经停靠了应用程序(Linux容器使用windows上的WSL(docker desktop)),但问题是我似乎无法访问容器内的阅读器

为了检查访问,我在运行
docker exec-it/bin/bash
之后使用了一个简单的
lsusb
命令

我已提及以下方法:

我还使用python库访问应用程序的读取器