Harbor version : 2.5.0 ,2.15.2
TKGm vesion : 2.5.x
tdnf install -y nginx) to pull the latest stable nginx package directly from the underlying Photon OS 5.0 repositories at the time the release image is built.
1. Ensure to perform a full backup of the Harbor data directory and the database.
2. Download the Harbor v2.15.2 release package from the official Harbor repository.
3. Navigate to the existing Harbor installation directory ( /opt/harbor ) and run the following command to stop the services:
# docker-compose down
4. Extract the v2.15.2 archive to a new directory.
5. Copy the harbor.yml file from the old installation to the new installation directory. Update the configuration if there are any new parameters in v2.15.2.
6. Run the prepare script in the new directory ( /opt/harbor_new ) to generate the new Docker Compose configuration:
# ./prepare
7. Start the new Harbor services
# docker-compose up -d
8. Check the status of the containers to ensure all services are healthy:
# docker-compose ps
harbor-core and harbor-db containers using docker-compose logs <container_name>.