我试图将docker挂载到docker容器中,它曾经在Windows上与WSL一起工作,但现在我在Linux(Ubuntu 22)上,当我试图从容器中使用docker时,我遇到了这个错误。
在容器上使用docker时的输出
root@54346cba74f7:/# docker
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)
容器上的Glibc版本
root@435a50db166b:/# ldd --version
ldd (Debian GLIBC 2.31-13+deb11u5) 2.31
docker-compose
version: "3.8"
services:
jenkins-controller:
image: jenkinsci/jenkins
user: root
privileged: true
restart: unless-stopped
ports:
- "10380:8080"
- "50000:50000"
volumes:
- "jenkins-controller:/var/jenkins_home"
- "/usr/bin/docker:/usr/bin/docker"
- "//var/run/docker.sock:/var/run/docker.sock"
volumes:
jenkins-controller:
我已经尝试了这个solution,但它不工作,现在的输出是:
root@9452ea2f61e1:/home/jenkins# docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
1条答案
按热度按时间r7xajy2e1#
尝试启动docker守护进程