-
Notifications
You must be signed in to change notification settings - Fork 454
DL4005
Miles Dai edited this page Jul 12, 2022
·
3 revisions
# Install bash
RUN apk add --update-cache bash=4.3.42-r3
# Use bash as the default shell
RUN ln -sfv /bin/bash /bin/sh
# Install bash
RUN apk add --update-cache bash=4.3.42-r3
# Use bash as the default shell
SHELL ["/bin/bash", "-c"]
Docker provides a SHELL
instruction which does not require overwriting /bin/sh
in your container.