启动防火墙
systemctl start firewalld
开启端口
firewall-cmd --zone=dmz --add-port=8899/tcp --permanent
重新加载配置
firewall-cmd --reload
重新启动docker
systemctl stop docker.service
systemctl start docker.service
或者
systemctl restart docker.service
启动jenkins
docker run -d -p 8899:8080 -p 50000:50000 -v /home/jenkins/data:/var/jenkins_home jenkins