Maximizing Docker Hub's Free Private Repo

Maximizing Docker Hub's Free Private Repo

Hosting Multiple images on One Private Repo

ยท

1 min read

As a developer, it's important to minimize costs wherever possible. Docker Hub provides one free private repository with each user account.

Who says your Docker Hub private repo has to be clutter-free? Sure, hosting multiple applications in a single repository can look messy ๐Ÿคฏ, but it gets the job done! ๐Ÿ’ช Plus, you get to save some bucks! ๐Ÿ’ฐ

Just imagine, one repo to rule them all! ๐ŸŒŸ Simply tag your repo with the unique names of the project you're deploying and you're good to go! ๐Ÿš€

#image 1
docker build -f Dockerfile.prod -t jennykibiri/multiapps:frontend-prod-latest .
docker push jennykibiri/multiapps:frontend-prod-latest

#image 2
docker build -f Dockerfile.staging -t jennykibiri/multiapps:frontend-staging-latest .
docker push jennykibiri/multiapps:frontend-staging-latest

#image 3
docker build -f Dockerfile.dev -t jennykibiri/multiapps:frontend-dev-latest .
docker push jennykibiri/multiapps:frontend-dev-latest

And yeah, sure, your repo might look like a wild jungle ๐ŸŒด with a lot of tags running around, but hey, it's organized chaos! ๐Ÿ˜‚ Plus, it's a clever way to make the most out of Docker Hub's free private repository. ๐Ÿ‘Œ

So go ahead and give it a try! Who knows, maybe you'll discover that sometimes, clutter can be a good thing. ๐Ÿ˜‰.