Where Does Harbor Store Images and Config?
Harbor image registry data root and installer config paths on Linux for private image hosting. Covers defaults.
Last updated
Harbor keeps registry blobs under a data root. The default host path is /data with registry, jobservice, and database subfolders inside. That tree dominates disk on image heavy installs.
Settings live in harbor.yml with hostname, ports, and storage options. The installer renders service configs from it. Back up the data root with harbor.yml and database dumps. Images without the database lose project metadata. Replication mirrors images between registries. Garbage collection reclaims untagged blobs nightly.
Where Harbor stores this, by platform
/data (Harbor registry root)
Image blobs with registry, database, and job logs inside. Mount dedicated storage here on busy registries. Copy with Harbor stopped for consistency.
/opt/harbor/harbor.yml
Hostname, ports, and storage settings for the installer. Rebuild service configs after edits with prepare. Keep with data backups.
Frequently asked questions
what do i back up for a Harbor move
Copy /data with harbor.yml and a database dump. The data root holds images, charts, and job logs. The config holds hostname and storage settings. Both restore the registry.
where are Harbor container images stored
Open harbor.yml in the installer folder to read hostname and data_volume lines. Images default under /data/registry. The file decides where blobs land.
Notice an outdated path? Let us know.