Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
721b53c6
Commit
721b53c6
authored
Nov 30, 2021
by
João Pereira
Committed by
Nick Gaskill
Nov 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty tag name issue to registry admin docs
parent
128f6d20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
doc/administration/packages/container_registry.md
doc/administration/packages/container_registry.md
+28
-0
No files found.
doc/administration/packages/container_registry.md
View file @
721b53c6
...
...
@@ -484,6 +484,12 @@ storage:
#### Migrate to object storage without downtime
WARNING:
Using
[
AWS DataSync
](
https://aws.amazon.com/datasync/
)
to copy the registry data to or between S3 buckets creates invalid metadata objects in the bucket.
For additional details, see
[
Tags with an empty name
](
#tags-with-an-empty-name
)
.
To move data to and between S3 buckets, the AWS CLI
`sync`
operation is recommended.
To migrate storage without stopping the Container Registry, set the Container Registry
to read-only mode. On large instances, this may require the Container Registry
to be in read-only mode for a while. During this time,
...
...
@@ -1501,6 +1507,28 @@ The most straightforward option is to pull those images and push them once again
using a Docker client version above v1.12. Docker converts images automatically before pushing them
to the registry. Once done, all your v1 images should now be available as v2 images.
### Tags with an empty name
If using
[
AWS DataSync
](
https://aws.amazon.com/datasync/
)
to copy the registry data to or between S3 buckets, an empty metadata object is created in the root
path of each container repository in the destination bucket. This causes the registry to interpret
such files as a tag that appears with no name in the GitLab UI and API. For more information, see
[
this issue
](
https://gitlab.com/gitlab-org/container-registry/-/issues/341
)
.
To fix this you can do one of two things:
-
Use the AWS CLI
[
`rm`
](
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/rm.html
)
command to remove the empty objects from the root of
**each**
affected repository. Pay special
attention to the trailing
`/`
and make sure
**not**
to use the
`--recursive`
option:
```
shell
aws s3
rm
s3://<bucket>/docker/registry/v2/repositories/<path to repository>/
```
-
Use the AWS CLI
[
`sync`
](
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html
)
command to copy the registry data to a new bucket and configure the registry to use it. This
leaves the empty objects behind.
### Advanced Troubleshooting
We use a concrete example to illustrate how to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment