docker run -d -uroot
-p 9095:8080 -p 5000:5000
--name jenkins
-v /data/jenkinsHome:/var/jenkins_home
-v /etc/localtime:/etc/localtime
-v /usr/local/jdk1.8:/usr/local/jdk1.8
-v /usr/local/apache-maven-3.8.5:/usr/local/apache-maven-3.8.5
jenkins/jenkins:2.387.1
vim /usr/lib/systemd/system/docker.service
-H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
Exception caught: Get https://192.168.101.65:50000/v2/: net/http: TLS handshake
解决办法:
,"insecure-registries":["192.168.80.131:5000"]
保存