Answer the question
In order to leave comments, you need to log in
Why can't /bin/bash be run in docker?
Dockerfile is something like this (removed irrelevant data):
FROM debian:8.4
ENV DEBIAN_FRONTEND noninteractive
ENTRYPOINT ['/bin/bash' '-c']
/bin/sh: 1: [/bin/bash: not found
Answer the question
In order to leave comments, you need to log in
The way I solved this problem for myself. Does not claim to be correct. You need to copy the .sh file to the container and specify it as executable when the container starts.
Dockerfile:
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod 0755 /usr/local/bin/docker-entrypoint.sh
CMD ["/usr/local/bin/docker-entrypoint.sh"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question