Skip to content

Unable to run Docker image: "version `GLIBC_2.33' not found" #573

Closed
@hi019

Description

@hi019

PR in #572

When running the latest docker build (docker run ghcr.io/postgresml/pgcat:latest), I get this error:

> docker run ghcr.io/postgresml/pgcat:latest
Unable to find image 'ghcr.io/postgresml/pgcat:latest' locally
latest: Pulling from postgresml/pgcat
14726c8f7834: Pull complete 
33d35add1f41: Pull complete 
60122075d4cb: Pull complete 
4f4fb700ef54: Pull complete 
Digest: sha256:ce6f1dac2d0a26f7a543858e0d448c314b9cba6bdf3e383dba912f4ea582b2ea
Status: Downloaded newer image for ghcr.io/postgresml/pgcat:latest
pgcat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by pgcat)
pgcat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by pgcat)
pgcat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by pgcat)

I think this is because of Docker base image incompatibilities. The base Docker image used for building, rust:1, is running a different version of glibc than that of the image used for executing pgcat, debian:bullseye. And apparently Rust requires the that the glibc version used for building be compatible with the one used to execute the binary (rust-lang/rust#57497).

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