Skip to content

Bug: USER and HOME not set in OCI-Image #100

@Leaced

Description

@Leaced

On rootless podman the USER and HOME ENV are not set in the OCI-Container.

Starting the Container gives the following error:

pgexporter[1532692]: time=2026-03-30T12:02:25.868Z level=ERROR msg="fail scraping server [user:pass@server:5432/postgres?sslmode=disable]: fail fetching server version: user:  Current requires cgo or $USER, $HOME set in environment"

This does not match the documentation.
To resolve this error I have set a random USER Env and HOME=/tmp.

This ENVs could be set in the image to match the documentation even in setups with rootless OCI-Engines.

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