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

Viewed 716

jenkins : job faenter image description hereiles when entering stage of building image here is the error displayed when executing docker build -t jumperiz/nodeapp : Error is : docker: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by docker) docker: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by docker) a picture of my build is attached.

any guidance would be apreciated!

1 Answers

You need to install docker manually and you can follow this steps :

  • run jenkins container on detached mode :

    docker run -p 8080:8080 -p 50000:50000 -d -v /var/run/docker.sock:/var/run/docker.sock -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts

  • Enter the jenkins container as root user :

    docker exec -it -u0 bash

  • Install docker :

    curl https://get.docker.com/ > dockerinstall && chmod 777 dockerinstall && ./dockerinstall

  • And then exit the jenkins container and change docker.sock privilege to read and write for all user with :

    sudo chmod 666 /var/run/docker.sock

Related