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] Add docker image from local cache #394

Open
Morgimiel opened this issue Jan 27, 2025 · 0 comments
Open

[feature] Add docker image from local cache #394

Morgimiel opened this issue Jan 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Morgimiel
Copy link

Morgimiel commented Jan 27, 2025

Is this Feature/Enhancement related to an Existing Problem? If so, please describe:

It would be awesome to be able to to such a thing:

docker tag test local-registry:5000/test/image:1.0.0
hauler store add image local-registry:5000/test/image:1.0.0
ERR ... dial tcp lookup local-registry: server misbehaving

I would expect hauler to first check if docker image exist in docker images and load locally before trying to pull from remote.

Describe Proposed Solution(s):

Hauler should first check for docker images locally, then try to pull it from remote.
We could also have a flag such as --pull-always, to have the same behavior as currently.

Describe Possible Alternatives:

I tried the following workaround, as discussed here, without success :

docker tag test local-registry:5000/test/image:1.0.0
docker save local-registry:5000/test/image:1.0.0 -o test.tar
hauler store load test.tar -s .
INF loading content from [./test.tar] to [.]

hauler store ls -s . -o json
null

Additional Context:

I'm using hauler 1.1.1

@Morgimiel Morgimiel added the enhancement New feature or request label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant