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

Question about caching-docker-images #27

Open
iav opened this issue Dec 11, 2019 · 1 comment
Open

Question about caching-docker-images #27

iav opened this issue Dec 11, 2019 · 1 comment

Comments

@iav
Copy link

iav commented Dec 11, 2019

https://github.com/Mayeu/mayeu.me/blob/master/site/content/post/saving-time-bandwidth-caching-docker-images-with-local-registry.md
When I follow this guide I got aside effect: I can't push to dockerhub. I have to disable cache to push to dockerhub.
How you with it?

@Mayeu
Copy link
Owner

Mayeu commented Dec 13, 2019

Ha interesting. I don't push much to Docker hub so I never got this (it's always my CI which do so).

What if you prepend your namespace/image with docker.io? Like so:

$ docker push docker.io/iav/my-image

Another solution would be to not make the caching register the default one, and explicitly pull from it (so not changing the /etc/docker/daemon.json file) and doing this when pulling:

$ docker pull localhost:5000/nginx

But that ask to prepend everything with localhost:5000 (like every compose file, etc.)

Please not that I did not test those, so you may have to fiddle a bit to find a working solution ^^

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