Article From:https://segmentfault.com/q/1010000012145721
Question:

Generating container:

docker run -d -p 8080:8080 --name jenkins -v 
 usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v /home/maven:/root jenkins

An error occurred in running the docker command in the Jenkins container.

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

After checking the data, the following commands were added to the run command:

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

But it is still wrong:

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

Answer 0:

If you have no environment variables, you can specify the docker installation directory.

Leave a Reply

Your email address will not be published. Required fields are marked *