docker registry 域名

此问题可能有点小白,但是小弟这边真是不了解~registry 域名问题,假设,我有一台 container registry node server, IP:172.29.26.233/etc/hosts 或者定义 为 172.29.26.233 registry.com.cn在架设成功之后,一般打标签的时候:docker tag xxx registry.com.cn:5000/xxx ,要想去掉:500...显示全部

此问题可能有点小白,但是小弟这边真是不了解~

registry 域名问题,

假设,我有一台 container registry node server, IP:172.29.26.233

/etc/hosts 或者定义 为 172.29.26.233 registry.com.cn

在架设成功之后,一般打标签的时候:

docker tag xxx registry.com.cn:5000/xxx ,要想去掉:5000 这个port ,怎么做?

也就是希望是如下结果:

docker tag xxx registry.com.cn/xxx && docker push registry.com.cn/xxx



其实就是下面的 Comman Name 那一栏的域名是怎么来的?

[root@guiqiu-virtualbox nginx]#  openssl req -new -key domain.key -out dev-docker-registry.com.csr

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

Country Name (2 letter code) [XX]:

State or Province Name (full name) []:

Locality Name (eg, city) [Default City]:

Organization Name (eg, company) [Default Company Ltd]:

Organizational Unit Name (eg, section) []:

Common Name (eg, your name or your server's hostname) []:registry.com.cn

[root@guiqiu-virtualbox nginx]#  openssl req -new -key domain.key -out dev-docker-registry.com.csr

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

Country Name (2 letter code) [XX]:

State or Province Name (full name) []:

Locality Name (eg, city) [Default City]:

Organization Name (eg, company) [Default Company Ltd]:

Organizational Unit Name (eg, section) []:

Common Name (eg, your name or your server's hostname) []:registry.com.cn

Email Address []:

Please enter the following 'extra' attributes

to be sent with your certificate request

A challenge password []:

An optional company name []:


收起
参与2

返回guiqiu_2010的回答

guiqiu_2010guiqiu_2010系统架构师realtek
[此回答已删除]
浏览1241

回答者

guiqiu_2010
系统架构师realtek
擅长领域: 云计算容器Docker

guiqiu_2010 最近回答过的问题

回答状态

  • 发布时间:2016-07-11
  • 关注会员:1 人
  • 回答浏览:1241
  • X社区推广