Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Check before pull #95

Open
dlutsch opened this issue Nov 26, 2021 · 1 comment
Open

Feature: Check before pull #95

dlutsch opened this issue Nov 26, 2021 · 1 comment

Comments

@dlutsch
Copy link

dlutsch commented Nov 26, 2021

I'm using docker-mirror to manage a very large number of docker images. If I run this on a new machine, each image needs to be pulled and re-tagged regardless of whether or not that image tag already exists in the target mirror repo. It would be great if there was a config option to change this behavior and have docker-mirror check the target repo first to validate whether the proposed tag exists first. This way it would only pull the image from the source repo when the tag doesn't exist in the target. This saves time and disk space, and avoids the issue of dockerhub pull rate-limiting.

I'm not sure whether SHA validation would be necessary or not, but it could be achieved if the arch was also added to the config, an env var, or otherwise read from the system.

@josegonzalez
Copy link
Contributor

Pull requests welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants