"Can't execute 'bash' error" on Alpine image
amrishparmar opened this issue · comments
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
My best guess is that you need to update libseccomp2
(and possibly, but less likely, runc
) on your host 👀