Skip to content

docker run / docker-compose up fail on postgres connection refused #3644

Closed as not planned
@mro-msandford

Description

@mro-msandford

I'm reading and following the docs here: https://coder.com/docs/coder/latest/setup/coder-for-docker/local#installing-coder-for-docker

When I try and launch with docker on the command line I get no joy.

2022-08-23 13:08:24.263 [ERROR] <./product/coder/service/coderd/cmd/run.go:817> startEmbeddedPostgres.func1     postgres exited {"error": "exit status 1"}
Error: connect to postgres: retry failed because context canceled, last run error: connect to postgres: dial tcp 127.0.0.1:5433: connect: connection refused

Roughly the same thing happens when I try docker-compose up as well. I have attempted this with versions 1.30.0, 1.31.0, 1.32.0, 1.32.3, 1.33.0, 1.33.3 and possibly a few others. Since I don't know a ton about the internals of the coder server or how this image fires up I'm a bit at a loss as to where to go from here.

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