Skip to content

Changing end of line sequence #4

@HarrowX

Description

@HarrowX

exec /entrypoint_custom.sh: no such file or directory problem in container
docker-compose-postgres-pgadmin-pgadmin-1
In file entrypoint.sh need to select end of line sequence like a LF.

The most likely reason is that your entrypoint.sh lacks Unix line endings or execute permissions, or it's not a valid shell script for the container's environment (which is Linux-based).

But more critically: the official dpage/pgadmin4 image runs as a non-root user (pgadmin) by default, and you're overriding it with user: root — which is fine — but the mounted script may not be executable inside the container.

Also, Windows line endings (CRLF) in entrypoint.sh can cause this exact error in Linux containers (/bin/sh: /entrypoint_custom.sh: not found or no such file or directory), because the shebang (#!/bin/bash) gets mangled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions