jenkins 构建docker项目错误总结

2017-07-10  本文已影响0人  探戏者
[DEBUG] Auth Config null
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->unix://localhost:80
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->unix://localhost:80
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied
Jul 10, 2017 4:48:57 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->unix://localhost:80

解决方案:改变目录权限

chmod 777 /var/run/docker.sock
或者
usermod -a -G docker jenkins

上一篇下一篇

猜你喜欢

热点阅读