Docker Community Forums

Share and learn in the Docker community.

Running sh file from another sh file, throws error

I have docker image where i run install.sh , from install.sh i run another sh file but it always say No such file or directory , even after i give absolute path

below is my docker file

RUN groupadd apg
&& useradd -g apg -s /bin/bash -d /opt/APG apg
COPY test/install.sh .
RUN ./install.sh

in install.sh

/data/test.sh – --silent --accept-eula --install-dir=/opt/APG

Any help will be appreciated/