aphexlog
aphexlog

Reputation: 1775

VMWare Harbor: How to point your registry to a specific directory to use as datastore

I am setting up VMWare Harbor as an image registry (just like a docker trusted registry) and I am not sure where it is currently configured to store images once pushed.

I could not find documentation on how to do this, so my question is: How would I go about mapping Harbor to store images on a specific directory (/data01) that has already had disk space allocated for the images?

Upvotes: 0

Views: 985

Answers (2)

mJace
mJace

Reputation: 59

In harbor v1.5, it store data more than just for docker registery.
It also store data for it's own ui, adminserver ,etc. in /data for default.
But for now harbor did not provide an easy configuration to change the default storage path /data.
(not sure if it is doable in v1.6)

So if you really want to change the default storage path,
you may search all the yaml for /data and replace it by your new path /data01.
Or, you can create /data and like up with /data01, before you start to run up the Harbor

Upvotes: 0

jaxxstorm
jaxxstorm

Reputation: 13301

Harbor uses the standard docker registry behind the scenes, it just provides a nice UI and interface to use it.

Configuring it depends on how you're deploying Harbor itself. There are instructions for configuring a storage backend in the installation guide. If you have a mountpoint like /data01 you want to use, it is probably something like this:

storage:
  filesystem:
    rootdirectory: /data01

See the instructions for your harbor installed method for more information.

Upvotes: 1

Related Questions