首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法登录到Nexus注册中心(托管)

无法登录到Nexus注册中心(托管)
EN

Stack Overflow用户
提问于 2020-05-15 06:23:54
回答 1查看 2.3K关注 0票数 1

我已经在nexus服务器https://nexus.mycompany.com中配置了Docker注册中心(宿主),并在8083上启用了HTTP连接器端口。

我无法从我的Jenkins服务器将图像推送到Docker存储库。

我在Jenkins服务器.x的不安全注册中心中添加了连接服务器。

代码语言:javascript
复制
$ cat /etc/docker/daemon.json

{
  "insecure-registries": [
     "nexus.mycompany.com:8082",
     "nexus.mycompany.com:8083"
  ]
}

当我跑的时候

码头管理员登录-u -p xxxxx nexus.mycompany.com:8083

我得到以下错误

警告!通过CLI使用密码是不安全的。使用.密码-stdin。来自守护进程的错误响应:获取 :拨号tcp xxx.x.0.xx:8083: connect: no路由到主机

我已经配置了,下面是我在Jenkins服务器中的conf.d .d文件。我是不是在代理设置中遗漏了什么?

代码语言:javascript
复制
<VirtualHost xxx.xx.x.xx:80>

ServerName jenkins.mycompany.com
ProxyRequests Off
RewriteEngine on

ProxyPass /jenkins http://xxx.xx.x.xx:8080/jenkins
ProxyPassReverse /jenkins  http://xxx.xx.x.xx:8080/jenkins


ProxyPreserveHost On

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog  /var/log/httpd/jenkins-error.log
CustomLog  /var/log/httpd/jenkins-access.log combined

#Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

</VirtualHost>



<VirtualHost xxx.xx.x.xx:443>
ServerName jenkins.mycompany.com

TimeOut 900

<Directory />
Order allow,deny
Allow from all
</Directory>

SSLEngine On
SSLCertificateKeyFile   /etc/httpd/conf.d/.ssl/mycompany.com.key
SSLCertificateFile      /etc/httpd/conf.d/.ssl/mycompany.com.crt
SSLCertificateChainFile /etc/httpd/conf.d/.ssl/mycompany.comca.crt

ProxyRequests Off
RewriteEngine on

ProxyPass /jenkins  http://xxx.xx.x.xx:8080/jenkins
ProxyPassReverse /jenkins  http://xxx.xx.x.xx:8080/jenkins


ProxyPreserveHost On
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog  /var/log/httpd/jenkins-ssl-error.log
CustomLog  /var/log/httpd/jenkins-ssl-access.log combined

</VirtualHost>```



I can connect to the Docker registry from the nexus server.
Jenkins server ports 
Below are my port settings on the Jenkins server.

```Active Internet connections (only servers)

Proto Recv-Q发送-Q本地地址外部地址状态PID/程序名

tcp 00.0.0.0:22 0.0.0.0:*听-

tcp 0 127.0.0.1:25 0.0.0.0:*听-

tcp6 0 0:22:*听-

tcp6 0 0 ::1:25:*听-

tcp6 0 0:443:*听-

tcp6 0 0 127.0.0.1:8005:* LISTEN 15505/java

tcp6 0 0:8009:* LISTEN 15505/java

tcp6 0 0:8080:* LISTEN 15505/java

tcp6 0 0:80::*听-

.`

代码语言:javascript
复制
EN

回答 1

Stack Overflow用户

发布于 2020-05-18 07:48:10

这是简单的端口问题,.though,端口8083正在监听,它不接受流量。

我编辑了iptables,添加了8083以接受入站流量,并且我能够登录。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61813029

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档