I have created a python script and it is in a container that is running on my Raspberry Pi Zero. I have also created an dockerfile to go with the container as well. When the script runs on the Rpi it is running how it should (I can see from the logs in balenaCloud).
The issue I am having is that the USB Input device (a barcode scanner) is not being inputted into the script that is running.
I assume this is because I need a link between the host and the container but I cannot seem to find anything for python.
FROM balenalib/rpi-debian-python:latest RUN apt-get update RUN apt-get install python3-pymongo # Copy my application files RUN mkdir -p apps COPY ./apps/ ./apps/ # runs a sample app on container start CMD ["python3", "apps/main.py"]
I have also tried with a USB keyboard and it still does not recognize any input.
Any guidance is appreciated