-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to list the reader inside docker container. #59
Comments
I must say I never tried to use pcscd inside docker. Please generate a pcscd log as documented at https://pcsclite.apdu.fr/#support |
No news since more than 3 months. |
@LudovicRousseau Are there any new development on this. |
@Starkeffect-007 no development planned. See also https://ludovicrousseau.blogspot.com/2020/11/how-to-get-smart-card-support.html |
Here is a pcscd log of a cardreader (detected) inside docker. Wonder if it's related to:
Full log output
|
You log indicates everything works fine. You can ignore the 2 "error" messages in the first log extract. So no problem to fix here. Execution is nominal :-) |
Was able to get it working in a docker container. And during the run, you need to pass USB device. In my case: |
@bramevo could you share the Dockerfile you've used? |
outside the docker container (it works) and inside docker container it doesn't
apdu4j.ar
used is from hereDockerfile
looks like thisBuilding Dockerfile
docker build . Sending build context to Docker daemon 51.27MB Step 1/7 : FROM ubuntu:16.04 ---> a3551444fc85 Step 2/7 : RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends curl ca-certificates apt-utils && rm -rf /var/lib/apt/lists/* ---> Using cache ---> d6b506a9e678 Step 3/7 : RUN apt-get update && apt-get install -y git udev software-properties-common autoconf libtool pkg-config libsystemd-dev libudev-dev flex usbutils libpcsclite1 libpcsclite-dev libusb-1.0-0-dev pcscd kmod nano linux-headers-`uname -r` ---> Using cache ---> 755d4f82fadf Step 4/7 : RUN apt-get -y install openjdk-8-jdk ---> Using cache ---> 6eeea98651aa Step 5/7 : COPY artifacts/* /home/ ---> Using cache ---> c8c6f79c2939 Step 6/7 : WORKDIR /home/ ---> Using cache ---> 8a2646f06d22 Step 7/7 : CMD ["bash"] ---> Using cache ---> 59180181e2d9 Successfully built 59180181e2d9
Ran docker using this command
rjosyula@qxlsz:~$ docker run -it --privileged 59180181e2d9 root@59180181e2d9:/home#
Now trying to list readers inside the container. But failing miserably. Not sure what am i doing wrong. please help!
let me know if you need more information .
Thanks
The text was updated successfully, but these errors were encountered: