Docker Build Error: env: can't execute 'bash': No such file or directory

env: can't execute 'bash': No such file or directory

This error is because of the absence of bash shell in the docker container. In-order to fix this error, we need to include command to install bash shell within the Docker file.

RUN apk update && apk add bash

Then rebuild the docker image and run the container.

That's all…

Leave a Reply

Your email address will not be published. Required fields are marked *