I'm using Docker version:
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:25:01 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:25:01 UTC 2015
OS/Arch: linux/amd64
I'm on Centos 7 I have a Jenkins-container running in my Docker Environment. When I'm accessing the Jenkins-container and try to perform a Docker-command I got this error:
libsystemd-journal.so.0: cannot open shared object file: No such file or directory
I tried:[root@localhost lib64]# sudo ln -s /usr/lib64/libsystemd.so.0 libsystemd.so.0 ln: failed to create symbolic link ‘libsystemd.so.0’: File exists
I saw this issue after solving this: question
Here is the same issue: https://botbot.me/freenode/docker/2015-12-01/?page=4
After multiple comments on the previous question, the OP Jenson confirms making it work with:
I will have to make a dockerfile because the run command is too much.
But it works at the moment:
docker run -d --name jenkins --volumes-from jenkins-dv --privileged=true \
-t -i \
-v /var/run/docker.sock:/var/run/docker.sock
-v $(which docker):/bin/docker \
-v /lib64/libsystemd-journal.so.0:/usr/lib/libsystemd-journal.so.0 \
-v /lib64/libsystemd-id128.so.0:/usr/lib/libsystemd-id128.so.0 \
-v /lib64/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 \
-v /lib64/libgcrypt.so.11:/usr/lib/libgcrypt.so.11 \
-v /lib64/libdw.so.1:/usr/lib/libdw.so.1 \
-p 8080:8080 jenkins
I mentioned that running docker from a container ("cic": "container-in-container") means mounting the docker
executable and /var/run/docker.sock
.
Apparently, that particular image needs a bit more to run from within a container.