
If you have installed Alpine Linux image using Docker and you get, /bin/sh: bash: not found, the reason is that you do not get bash shell installed on with this image, you only get sh shell.
You should make use of sh instead to keep the footprint, if you still want to install bash, use command RUN apk add --no-cache bash
You can also, run the command apk add bash after you run alpine Linux,
Example:# apk add bash
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
(1/4) Installing ncurses-terminfo-base (6.3_p20211120-r0)
(2/4) Installing ncurses-libs (6.3_p20211120-r0)
(3/4) Installing readline (8.1.1-r0)
(4/4) Installing bash (5.1.16-r0)
Executing bash-5.1.16-r0.post-install
Executing busybox-1.34.1-r5.trigger
OK: 8 MiB in 18 packages
More Posts related to Docker,
- How to docker remove a container when it exits
- Install Python on Alpine Linux - Docker
- How to Rename Docker Image with none TAG and REPOSITORY?
- Remove all stopped containers in Docker using prune command
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- [fix] Error response from daemon: conflict unable to remove repository reference ubuntu container is using its referenced image
- [Docker] Install Python3 on Alpine Linux
- Unable to find image docker latest locally
- How to Stop/Cancel/kill docker image pull
- How to know the Docker Engine Version
- [fix] Docker: OCI runtime exec failed unable to start container process
- [Solution] Alpine Docker apt-get: not found
- Install and Run Cassandra on Docker Desktop
- Install node on Alpine Linux Docker
- How to Copy files from Docker Container to Host System
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- How to stop and start a docker container
- Docker - Error response from daemon: You cannot remove a running container
- Open Docker Desktop from macOS Terminal
- How to check installed docker version command
- How to know the Docker Sandbox ID of a Container Network?
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
- [Docker] Install Git on Alpine Linux
- Docker MySQL Compose File with Volume Example
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
More Posts:
- How to Change Android Title Bar Color? - Android
- Notepad++ display files on tab bar as horizontal instead of vertical - NotepadPlusPlus
- Cannot access Windows application shortcuts on Start menu and Taskbar - Windows
- [Mac] Find a file using filename in macOS Terminal - MacOS
- Can we move apps like WhatsApp, Facebook to external MicroSD card - WhatsApp
- How to Configure Mac with PPPoE Ethernet if using DSL or Cable Modem - MacOS
- Fix SharePoint Error - Unable to Display Named Item - SharePoint
- RabbitMQ Queue Listener Java Spring Boot Code Example - Java