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

DockerHub #8

Closed
berlinfox opened this issue Jan 25, 2022 · 2 comments
Closed

DockerHub #8

berlinfox opened this issue Jan 25, 2022 · 2 comments

Comments

@berlinfox
Copy link

Maybe a stupid question, but what if I only want to deploy on my local machine without using DockerHub?

@chikamichi
Copy link

chikamichi commented Apr 7, 2022

You’d have to run a registry locally (could be docker’s registry, Trow, Harbor, etc.), and make sure to build and tag your image accordingly:

  • for registry (docker’s default registry implementation) => just omit the registry name ie. docker build -t myimage:0.1.0
    • in the absence of a prefix, docker run etc. will first try to find the image locally, then on Docker Hub
  • for other registries (eg. Trow, Harbor, etc.) => explicitly set that registry’s IP as a prefix ie. docker build -t localhost:5000/myimage:0.1.0 or docker build -t myregistry.mydomain.tld/myimage:0.1.0, etc.

@berlinfox
Copy link
Author

Thank you. That really helps!

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