Ls: command not found at .sh


#1

I’m running a shell script, and I want to see the folders, but when I type ls, it returns

ls: command not found

Do I need to install something to be able to run this command?

My container is a

FROM resin/rpi-raspbian:wheezy

with java & gradle

WORKDIR /
COPY . /usr/src/app
CMD ["/bin/bash", "/usr/src/app/run.sh"]

#2

Hey,

We resolved this in support, but for everyone else here - this is because an ENV var in the Dockerfile broke the PATH meaning none of these utilities were available. The Dockerfile expected an environment other than a resin device. We hope to put together a guide to catch gotchas like this in the future!

Best, Lorenzo