Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
db205ab6
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
db205ab6
编写于
6月 24, 2020
作者:
G
GitLab Bot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
上级
62a9b70c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
doc/administration/packages/container_registry.md
doc/administration/packages/container_registry.md
+8
-8
未找到文件。
doc/administration/packages/container_registry.md
浏览文件 @
db205ab6
...
...
@@ -110,7 +110,7 @@ expose the Registry on a port so that you can reuse the existing GitLab TLS
certificate.
Assuming that the GitLab domain is
`https://gitlab.example.com`
and the port the
Registry is exposed to the outside world is
`
4567
`
, here is what you need to set
Registry is exposed to the outside world is
`
5050
`
, here is what you need to set
in
`gitlab.rb`
or
`gitlab.yml`
if you are using Omnibus GitLab or installed
GitLab from source respectively.
...
...
@@ -124,7 +124,7 @@ otherwise you will run into conflicts.
path to the existing TLS certificate and key used by GitLab:
```
ruby
registry_external_url
'https://gitlab.example.com:
4567
'
registry_external_url
'https://gitlab.example.com:
5050
'
```
Note how the
`registry_external_url`
is listening on HTTPS under the
...
...
@@ -145,7 +145,7 @@ otherwise you will run into conflicts.
1.
Validate using:
```
shell
openssl s_client
-showcerts
-servername
gitlab.example.com
-connect
gitlab.example.com:
443
>
cacert.pem
openssl s_client
-showcerts
-servername
gitlab.example.com
-connect
gitlab.example.com:
5050
>
cacert.pem
```
NOTE:
**Note:**
...
...
@@ -160,7 +160,7 @@ If your certificate provider provides the CA Bundle certificates, append them to
registry
:
enabled
:
true
host
:
gitlab.example.com
port
:
4567
port
:
5050
```
1.
Save the file and
[
restart GitLab
](
../restart_gitlab.md#installations-from-source
)
for the changes to take effect.
...
...
@@ -170,7 +170,7 @@ Users should now be able to login to the Container Registry with their GitLab
credentials using:
```
shell
docker login gitlab.example.com:
4567
docker login gitlab.example.com:
5050
```
### Configure Container Registry under its own domain
...
...
@@ -1056,7 +1056,7 @@ A user attempted to enable an S3-backed Registry. The `docker login` step went
fine. However, when pushing an image, the output showed:
```
plaintext
The push refers to a repository [s3-testing.myregistry.com:
4567
/root/docker-test/docker-image]
The push refers to a repository [s3-testing.myregistry.com:
5050
/root/docker-test/docker-image]
dc5e59c14160: Pushing [==================================================>] 14.85 kB
03c20c1a019a: Pushing [==================================================>] 2.048 kB
a08f14ef632e: Pushing [==================================================>] 2.048 kB
...
...
@@ -1148,8 +1148,8 @@ Now that we have mitmproxy and Docker running, we can attempt to login and push
a container image. You may need to run as root to do this. For example:
```
shell
docker login s3-testing.myregistry.com:
4567
docker push s3-testing.myregistry.com:
4567
/root/docker-test/docker-image
docker login s3-testing.myregistry.com:
5050
docker push s3-testing.myregistry.com:
5050
/root/docker-test/docker-image
```
In the example above, we see the following trace on the mitmproxy window:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录