Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
registry-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
registry-docker
Commits
78595fe8
Commit
78595fe8
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Registry backup script.
parent
a4a34aee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2341
canceled
3 years ago
Stage: deploy
Stage: .post
Changes
1
Pipelines
13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backup/backup
+1
-1
1 addition, 1 deletion
backup/backup
with
1 addition
and
1 deletion
backup/backup
+
1
−
1
View file @
78595fe8
...
...
@@ -43,7 +43,7 @@ def backup(docker_client, registry, image, tag, dest):
def
backup_registry
(
registry
,
dest
):
"""
Backup the images in the registry to the destination.
"""
docker_client
=
docker
.
from_env
(
timeout
=
9
0
)
docker_client
=
docker
.
from_env
(
timeout
=
30
0
)
docker_client
.
ping
()
for
image
in
get_images
(
registry
):
(
dest
/
image
).
mkdir
(
exist_ok
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment