美文网首页
jenkins 构建docker项目错误总结

jenkins 构建docker项目错误总结

作者: 探戏者 | 来源:发表于2017-07-10 17:28 被阅读0次
    • 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

    相关文章

      网友评论

          本文标题:jenkins 构建docker项目错误总结

          本文链接:https://www.haomeiwen.com/subject/cmluhxtx.html