Skip to content

postgres:alpine linux/arm64: exec format error (entrypoint shell files empty) #1378

@dbIgel

Description

@dbIgel

The image sha256:48c8ad3a7284b82be4482a52076d47d879fd6fb084a1cbfccbd551f9331b0e40 has empty startup scripts and thus can not run.

When startet:

% docker run -it --rm --platform linux/arm64 postgres:alpine bash
exec /usr/local/bin/docker-entrypoint.sh: exec format error

Further inspection reveals that the entrypoint script is empty:

% docker run -it --rm --platform linux/arm64 --entrypoint /bin/sh postgres:alpine
/ # ls -al /usr/local/bin/*.sh
lrwxrwxrwx    1 root     root            23 Oct 22 17:40 /usr/local/bin/docker-enforce-initdb.sh -> docker-ensure-initdb.sh
-rwxr-xr-x    1 root     root             0 Oct 22 17:38 /usr/local/bin/docker-ensure-initdb.sh
-rwxr-xr-x    1 root     root             0 Oct 22 17:38 /usr/local/bin/docker-entrypoint.sh

In comparison, the (working) amd64 version (sha256:48c8ad3a7284b82be4482a52076d47d879fd6fb084a1cbfccbd551f9331b0e40):

% docker run -it --rm --platform linux/amd64 --entrypoint /bin/sh postgres:alpine
/ # ls -al /usr/local/bin/*.sh
lrwxrwxrwx    1 root     root            23 Oct 22 17:42 /usr/local/bin/docker-enforce-initdb.sh -> docker-ensure-initdb.sh
-rwxr-xr-x    1 root     root          2317 Oct 22 17:39 /usr/local/bin/docker-ensure-initdb.sh
-rwxr-xr-x    1 root     root         14646 Oct 22 17:39 /usr/local/bin/docker-entrypoint.sh

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