Infinite (Unlimited) Private Docker Repositories with TreeScale!
Why bother?
As someone who have recently been working with docker hub I found out that working with other registries like threescale can be fun! and helpful.
If you have experience with docker hub, you already know that private registries in free edition are limited to 1.
But treescale currently allows unlimited private and public repositories with the following limitations:
1- 500 Pull actions/month
2- 50 GB Registry space
3- 50 Image builds/month
Other pros:
1- My experience (yet short) shows that pull/push to treescale is really faster than docker hub (????? ?? ?????)
2- ??? ?? ????? ????? ??? ?????? ?? ?? ?? ?? ??? ??? ?? ???? ??? ???? ????? ??? ?? ?????? ?? ??? ??????? ??????? ????
???? ??? ??? ????? ?? ?????? ?? ???? ???? ??? ?? ?? ?? ?? ?? ???h??? ? ?? ???
nameserver 178.22.122.100 nameserver 185.51.200.2
?? ?????? ???? ??? ???? ????
/etc/resolv.conf
Some notable cons:
1- When you delete a registry in your account, a message is shown saying that they will remove it, but actually they won't do it soon.
2- In a registry you cannot see your tags! This is weird.
How?
You can read the official treescale documentation here, but I will mention everything here so that this article would be self-sufficient.
1- Create an account in treescale.com
Choose a pretty username, e.g: saeid.
2- Create a registry in your account page
Create a registry with any name you like, e.g: main.
3- Login to TreeScale registry in your OS:
Enter the following command. It will ask your username and password and if everything goes right, will print a successful message in the end:
docker login repo.treescale.com
4- Tag your image for TreeScale:
This step is important. Let's say we have an image which has 123456789 as its ID and its name:tag is main:myapp-2019-latest.
Now, the naming format on treescale is like this:
repo.treescale.com/<username>/<some name:some tag>
So we can rename the example above like this: (remember earlier the username was saeid and registry name was main)
$ sudo docker tag 123456789 repo.treescale.com/saeid/main:myapp-2019-latest
You can see all images with: sudo docker images command
5- It's time to push:
$ sudo docker push repo.treescale.com/saeid/main:myapp-2019-latest
The image will be uploaded to treescale.com servers.
6- Pull? OK that's simple!
$ sudo docker login repo.treescale.com $ sudo docker pull repo.treescale.com/saeid/main:myapp-2019-latest
I try to make things simple :-)