dockerfile - jenkins容器内无法运行Docker命令
PHP中文网
PHP中文网 2017-04-22 08:58:53
0
2
1855

现在构建jenkins容器

docker run -d -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -p 8080:8080 jenkins

当上面的执行后,已经成功启动容器了。

但是在Jenkins容器内运行了Docker命令,

结果失败了,出现了如下问题。

docker: error while loading shared libraries: libdevmapper.so.1.02: cannot open shared object file: No such file or directory

我试着加入了这个:

-v /lib64/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02

结果又出现了一个问题:

docker: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

我想下面不用试下去了,表示无解。

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
迷茫

Just change to root user

大家讲道理

Hello, I would like to ask, you got an error when running docker in jenkins, how did you solve it? I also encountered it
My host machine is ubuntu 14.04
docker: error while loading shared libraries: libltdl.so.7: cannot open share

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template