Problem with launching a BNC application

Hello everyone!
I have a problem with running BKG BNC application on Rasspberry Pi Zero. I declared the system in dockerfile as FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-python and I tried to run the BNC which has a version dedicated to Raspbian. While trying to run the application the terminal displays me sudo: ./bnc-2.12.9-raspbian-shared: command not found. I was looking for a solution, unfortunately I could not find anything. Maybe someone has an idea why this is happening? I will be very grateful for your help :slight_smile:

Hi there,

From that error message it looks like you might be running the script in the wrong directory (i.e., not where the bnc-.. executable lives). Can you confirm the executable exists in your WORKDIR? For more about WORKDIR, see the Docker documentation here: https://docs.docker.com/engine/reference/builder/#workdir. I also recommend reading our masterclass for more concrete examples with WORKDIR: https://www.balena.io/docs/learn/more/masterclasses/docker-masterclass/#51-workdir-directive.

It’s also possible that sudo doesn’t exist in the container – most things run already as root inside the container and privileges are enforced by the container engine. Without knowing more about your Dockerfile, it’s possible that removing that sudo call will fix your issues.

Please let us know how you find those resources!