Skip to content

Container exit with code 128 #150

Closed
Closed
@emad-elsaid

Description

@emad-elsaid

I'm using docker-compose to run a container of postgres:9.5.2 , the container runs successfully, i'm mapping the data volume to a local directory in /root/data/<project-name>/db and passing the required environment variables through .env file.

the problem is that in less than 24 hours the container crash with exit code 128, I don't know the reason, and it's not this container only, the other container that depend on this image also exit with the same code, it's a ruby container running foreman process.

I suspect that the ruby container crash because of postgres container crashed, but I don't know how to make sure of this claim.

also I have to mention that I set restart: always to both containers but It doesn't rerun them, but i think this is a separate problem.

so the question now, is that exit with code 128 is something common in this image or specific to me?
and how to debug it to discover the root cause?

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