docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.14k stars 1.11k forks source link

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

Closed amrishparmar closed 3 months ago

amrishparmar commented 3 months ago

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 :heavy_check_mark:
15.4 :heavy_check_mark:
15.5 :x:
15.6 :x:
16.0 :heavy_check_mark:
16.1 :x:
16.2 :x:

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

Docker version:

$ docker --version
Docker version 25.0.4, build 1a576c5
tianon commented 3 months ago

My best guess is that you need to update libseccomp2 (and possibly, but less likely, runc) on your host :eyes: