I created a docker image from openjdk:8-jdk-alpine
and I want to use bash
, rather than sh
as my shell, however when I try to execute simple commands I get the following errors:
RUN bash
/bin/sh: bash: not found
RUN ./gradlew build
env: can't execute 'bash': No such file or directory
docker run --rm -i -t alpine /bin/sh
– Finegrainedln -s /bin/ash /bin/bash
. But you are setting yourself up for confusing errors :) – Oreilly