Skip to content

"Can't execute 'bash' error" on Alpine image  #1216

@amrishparmar

Description

@amrishparmar

I noticed recently that my deployment of the Alpine-based image stopped working correctly.

It's a simple repro:

$ docker run --rm postgres:16.2-alpine
env: can't execute 'bash': Operation not permitted

I tried it with 16.1 and 16.2 and they both fail in the same way.
I then tried some older 15.x releases and they all work correctly up until 15.4, but then from 15.5 onwards it starts failing with the above error. 16.0 also works correctly

Table of versions I've tried:

Version Working?
15.3 ✔️
15.4 ✔️
15.5
15.6
16.0 ✔️
16.1
16.2

I don't see this error on the standard Debian images.

Docker version:

$ docker --version
Docker version 25.0.4, build 1a576c5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions