postgresml/pgcat

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

Closed this issue · 0 comments

hi019 commented

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).