1-Click Docker Registry with Northflank + Tigris | Tigris Object Storage

A cartoon tiger unloading shipping containers from the back of a whale.

Northflank is a full-stack cloud platform that makes it easy to build, deploy and scale your code, jobs and databases. Run your workloads on their cloud, or privately on yours. In order to make it easier for you to deploy your applications privately, we’ve made a self-hostable Docker Registry example that lets you store all your container images in Tigris. Hosting your own docker registry lets you fully control your destiny and make your private applications truly private.

To get started, open the stack template on Northflank. The rest of this article is going to explain the moving parts in this template and how they all work together.

Why host your own Docker registry?

In the modern cloud, you deploy your applications in containers. Docker image storage is normally cheap, but public registries have strict limits that can make deploying complicated applications difficult. Some registries charge egress fees, meaning that your AI applications have hidden costs on every deploy. Self-hosting your infrastructure means that you control your destiny. You get to decide when things are deprecated. You control your path.

Northflank slots cleanly into this because they let you bring your own cloud, meaning that you can run your infrastructure in any region you want. Need to deploy to one specific country for compliance reasons? Northflank has your back. Spin up the cluster elsewhere and then give it over to the platform.

This example uses the open source CNCF Distribution project backed by Tigris for storage and also uses Tigris for authentication. This lets you mint and track registry credentials using the same pane of glass you use to mint and track storage credentials.

The moving parts

In order to get this working, there’s a few moving parts:

Setting it up

To set it up for yourself:

Note: The following instructions only work on macOS or a Linux environment. If you are reading this from a Windows machine, please consider using the Windows Subsystem for Linux (WSL). It is possible to generate a TLS keypair in PowerShell, but I do not recommend it.

On your laptop, make a new folder in your terminal app of choice and run this command:

openssl \

req -x509 -nodes -new \

-sha256 -days 36500 \

-newkey rsa:4096 \

-keyout registry.key \

-out registry.pem \

-subj "/C=US/CN=Registry Auth CA"

Copy registry.key in base64 into CERT_KEY:

cat registry.key | base64 -w0 | pbcopy

Copy registry.pem in base64 into CERT_FILE:

cat registry.pem | base64 -w0 | pbcopy

Note: If you are using desktop Linux, you may need to use xclip or wl-copy instead of pbcopy.

That’s it! It’s all ready to go!

Using your new registry

Once you have this set up, make a new access key in the Tigris console and don’t grant it any permissions. This will be how you log into your registry.

Download an example docker image such as alpine:edge:

docker pull alpine:edge

Then tag it after the registry you made:

docker tag alpine:edge http--registry--5yk6bhbvjh58.code.run/base/alpine:edge

Authenticate to the docker registry:

docker login http--registry--5yk6bhbvjh58.code.run -u tid_access_key_id

Your password is the secret access key you just generated. Now push it to the registry:

docker push http--registry--5yk6bhbvjh58.code.run/base/alpine:edge

Then on another computer log into that registry with the same access key ID and secret access key. Try to use the image you just created:

$ docker run \

--rm -it \

http--registry--5yk6bhbvjh58.code.run/base/alpine:edge \

cat /etc/os-release

And that’s it! You have your own private registry stored in a Tigris bucket, hosted on Northflank. From here you can also set up object lifecycle rules to make old images move to Archive Instant Retrieval to save money. Personally I have things move to the Archive Instant Retrieval tier after 90 days.

If you want to set this up for yourself outside of Northflank, check out the installation instructions on the GitHub repo. Or, even easier, 1-click it into existence with a Northflank stack.

Unlimited storage; no egress fees

Need to store terabytes of data everywhere? Tigris has you covered without any pesky egress fees. Try it today and get the first 5 gigabytes on us. We'll store it everywhere out of the box.