[Python] Deploying application via API with docker: docker: /lib/x86_64-linux-gnu/libc.so.6:...

Discussão em 'Python' iniciado por Stack, Fevereiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am creating docker containers to deploy my apps via API, so there is a docker for app_manager that exposes an API and a docker container for an application(s) itself. Both app_manager and deploying applications are written in Python. I am testing deployment locally prior to deploying on the server. After the successful installation of app_manager I sent a request to deploy a specific version of my application via app_manager API (that uses subprocess.run) in a web browser. However, the response is null and by checking the docker logs I found the following error:

    docker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by docker)


    I do not use Jenkins and adding libc6 library to DockerFile does not change anything. I still can install my app in Docker container manually with a couple of bash commands. I can even deploy my app in the VSCode editor via subprocess.run() directly. However, how can I fix it, so I can deploy via sending API request?

    I am using Ubuntu 22.04.1 LTS, Python 3.8, Docker version 20.10.12, build 20.10.12-0ubuntu4

    Thank you

    Continue reading...

Compartilhe esta Página