If I select any container and click CLI button, the /bin/sh
shell will be opened by default. Is there any way to manually reconfigure Docker to open /bin/bash
?
It will depend on the base image, you can build a custom image and add bash if it is not available. And link the create a link to use bash instead of sh
FROM <BASE_IMAGE>
RUN apk add --no-cache bash
RUN ln -sf /bin/bash /bin/sh
Not exactly answer you asked for but for me it works to type bash
in sh terminal. It opens bash over the sh. Only nousance is that I must exit
twice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With