Skip to main content

Howto

Registry Server

URL: registry.webhosting.rug.nl

The primary advantage of maintaining our own registry instead of relying on external services like hub.docker.io is the ability to provide users with unlimited private repositories. This means users can create as many Docker images as they need without the risk of exposing them publicly.

Each user is allocated a personal project with a 20 GB limit for artifact storage and the freedom to store an unlimited number of artifacts. Harbor serves as the storage solution for Docker images and Helm charts. Through the web UI, users can delete artifacts and repositories to free up space, although deletions may take up to 24 hours to process.

If required, administrators can create shared projects for groups of users collaborating on common tasks.

Important Note:
Even though your personal project is private and others cannot directly view your images,
the Kubernetes cluster has access to all images across all projects.
This means your images are technically accessible to other Kubernetes users if they know
or correctly guess the image name.

Avoid including passwords or sensitive information in your images, as they could be accessed by others!

Commandline

Login private registry

$ docker login registry.webhosting.rug.nl

Note: you can sign in using your p-number, s-number or f-number.

Build tag push

$ cd docker-build-directory
$ docker build -t name .
$ docker tag name:latest registry.webhosting.rug.nl/username/name:latest
$ docker push registry.webhosting.rug.nl/username/name:latest

Explanation

  • docker-build-directory: directory where the Dockerfile is located
  • name: name of the image
  • username: can be username or projectname

Website

  1. Go to the following website, registry.webhosting.rug.nl
  2. Login with your credentials. This can be your p-number, s-number or f-number
  3. Select the proper projectname or username in the Projects screen