此问题可能有点小白,但是小弟这边真是不了解~
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 []:
收起