jenkins 构建docker项目错误总结

  • Auth Config null
[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

  • Docker daemon日志的位置
    • Ubuntu – /var/log/upstart/docker.log
    • Boot2Docker – /var/log/docker.log
    • Debian GNU/Linux – /var/log/daemon.log
    • CentOS – /var/log/messages | grep docker
    • Fedora – journalctl -u docker.service
    • Red Hat Enterprise Linux Server – /var/log/messages | grep docker
    原文作者:探戏者
    原文地址: https://www.jianshu.com/p/db58d1cfd01b
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞