Howto
Registry Server
The mainprimary advantage of havingmaintaining our own registry asinstead opposedof torelying usingon e.g.external services like hub.docker.io is thatthe weability canto offerprovide users with unlimited private repositoriesrepositories. toThis ourmeans users and thus they can create as many dockerDocker images as they wantneed without publiclythe risk of exposing them to the world.publicly.
Each user hasis theirallocated a personal project with a 20 GB limit for artifact storage and the freedom to store an unlimited number of artifacts. Harbor canserves beas usedthe tostorage storesolution for Docker images and Helm charts. TheThrough the web UI allowsUI, users tocan delete artifacts and repositories to reclaimfree spaceup (deletionspace, canalthough deletions may take up to 24 hours).hours to process.
If needed,required, an administratoradministrators can create a shared projectprojects for a groupgroups of users thatcollaborating needon tocommon work together.tasks.
Important Note:
Even though you have your ownpersonal project is private and noothers onecannot elsedirectly can seeview your images, the Kubernetes cluster canhas access to all images inacross all projects!projects.
YourThis means your images are thereforetechnically accessible byto allother Kubernetes users of Kubernetes
(if they know or correctly guess yourthe image name).name.
SoAvoid do NOT include anyincluding passwords or sensitive information in your image,images, itas canthey stillcould be accessed by other users.others.
login private registry
$ docker login registry.webhosting.rug.nl
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