Jenkins无法使用docker插件启动docker slave

Upp*_*ppi 4 jenkins jenkins-plugins docker centos7

我正在使用Jenkins Docker插件在Docker主机上动态启动从站。Jenkins主服务器在同一主机上运行。构建时,它会在docker-host上选择一个随机端口,并且无法连接到该端口。它启动docker容器。这是日志。不多说。如何调试问题?

INFO: Started container ID 54fe5780ca820a6e2b7cae40610cfc3229dbf889b0c66d6e34a39b74e13aaec7 for node slave-0000w16w841rc from image: jenkinsubuntu
Feb 28, 2019 9:35:54 PM com.nirima.jenkins.plugins.docker.utils.PortUtils$ConnectionCheckSSH execute
INFO: SSH port is open on 127.0.0.1:10007
[02/28/19 21:35:54] SSH Launch of slave-0000w16w841rc on 127.0.0.1 failed in 29 ms 
Feb 28, 2019 9:36:03 PM hudson.slaves.NodeProvisioner$2 run
INFO: Image of jenkinsubuntu provisioning successfully completed. We have now 7 computer(s) `
Run Code Online (Sandbox Code Playgroud)

Upp*_*ppi 6

找不到答案。但是最终attach docker container在Docker模板中为Docker插件选择了to的连接方法,这反过来又使其工作了。