Build 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
Error in running docker command in 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 command was added to the run command:
-v /lib64/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02
But I still reported the error:
docker: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
Lack of environment variables, you can specify the docker installation directory