Our core developer (Felipe) has released and open sourced a really interesting project related to Docker. There's a ton of Docker registries available, but private ones tend to cost money (and they can get expensive as you grow), here's a snippet on how to creating one protected with Let's Encrypt.
Requirements
- A domain name (or subdomain).
- A cloud Instance (a droplet on DigitalOcean, ideally with Ubuntu 16, with Docker and Docker Compose installed)
What's a registry you ask?
It's a place to store docker images, where other machines can push/pull from. Some content must be kept private, hence the private docker registry.
What's a docker Image?
It's an environment where your app lives, that can be shared easily, docker allows to run them under their supported operating systems.
Here's the repository to place in your instance
https://github.com/fzuleta/private-docker-registry-ssl
Steps
- Set in
docker-compose.yml
the REGISTRY_USER, REGISTRY_PASSWORD and DOMAIN on the Nginx args. - On
ssl_gen
set DOMAIN value with your domain. docker-compose up -d
chmod +x *.sh && ./ssl_gen.sh
- After it succeeds, start it with
docker-compose restart
After it succeeds
- From your local machine (or another) add your repo url to the
insecure-registries
(instructions: https://docs.docker.com/registry/insecure/) docker login my-repo-url.com
give your user name/pass- It should say
Login Succeeded
Automatic cron setup
This will schedule a renewal of the SSL cert with Let's Encrypt every 15 days.
crontab -u $USER -e
0 0 */15 * * /path/to/registry_files/ssl_renew.sh
Hope it helps!
Nice one! Thanks for the shout out :)
We're on to building an amazing product at Leadertags.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @leadertags! You have received a personal award!
1 Year on Steemit
Click on the badge to view your Board of Honor.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @leadertags! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit