Menjalankan install.sh pada harbor
./install.sh --with-trivy
root@registry-labs:/home/masadmin# cd /opt/harbor/ root@registry-labs:/opt/harbor# ls -l total 662068 drwxr-xr-x 3 root root 4096 May 28 02:20 common -rw-r--r-- 1 root root 3643 Apr 8 05:22 common.sh -rw-r--r-- 1 root root 5898 May 28 02:21 docker-compose.yml -rw-r--r-- 1 root root 677879406 Apr 8 05:22 harbor.v2.10.2.tar.gz -rw-r--r-- 1 root root 14006 May 28 02:22 harbor.yml -rw-r--r-- 1 root root 13972 Apr 8 05:22 harbor.yml.tmpl -rwxr-xr-x 1 root root 1975 Apr 8 05:22 install.sh -rw-r--r-- 1 root root 11347 Apr 8 05:22 LICENSE -rwxr-xr-x 1 root root 1882 Apr 8 05:22 prepare drwxr-xr-x 2 root root 4096 May 28 02:15 ssl root@registry-labs:/opt/harbor# root@registry-labs:/opt/harbor# ./install.sh --with-trivy [Step 0]: checking if docker is installed ... Note: docker version: 26.1.3 [Step 1]: checking docker-compose is installed ... Note: Docker Compose version v2.27.0 [Step 2]: loading Harbor images ... Loaded image: goharbor/harbor-db:v2.10.2 Loaded image: goharbor/harbor-jobservice:v2.10.2 Loaded image: goharbor/redis-photon:v2.10.2 Loaded image: goharbor/registry-photon:v2.10.2 Loaded image: goharbor/harbor-log:v2.10.2 Loaded image: goharbor/harbor-portal:v2.10.2 Loaded image: goharbor/harbor-core:v2.10.2 Loaded image: goharbor/harbor-registryctl:v2.10.2 Loaded image: goharbor/harbor-exporter:v2.10.2 Loaded image: goharbor/nginx-photon:v2.10.2 Loaded image: goharbor/trivy-adapter-photon:v2.10.2 Loaded image: goharbor/prepare:v2.10.2 [Step 3]: preparing environment ... [Step 4]: preparing harbor configs ... prepare base dir is set to /opt/harbor Clearing the configuration file: /config/log/rsyslog_docker.conf Clearing the configuration file: /config/log/logrotate.conf Clearing the configuration file: /config/portal/nginx.conf Clearing the configuration file: /config/jobservice/env Clearing the configuration file: /config/jobservice/config.yml Clearing the configuration file: /config/registryctl/env Clearing the configuration file: /config/registryctl/config.yml Clearing the configuration file: /config/db/env Clearing the configuration file: /config/core/env Clearing the configuration file: /config/core/app.conf Clearing the configuration file: /config/registry/root.crt Clearing the configuration file: /config/registry/config.yml Clearing the configuration file: /config/registry/passwd Clearing the configuration file: /config/nginx/nginx.conf Generated configuration file: /config/portal/nginx.conf Generated configuration file: /config/log/logrotate.conf Generated configuration file: /config/log/rsyslog_docker.conf Generated configuration file: /config/nginx/nginx.conf Generated configuration file: /config/core/env Generated configuration file: /config/core/app.conf Generated configuration file: /config/registry/config.yml Generated configuration file: /config/registryctl/env Generated configuration file: /config/registryctl/config.yml Generated configuration file: /config/db/env Generated configuration file: /config/jobservice/env Generated configuration file: /config/jobservice/config.yml loaded secret from file: /data/secret/keys/secretkey Generated configuration file: /config/trivy-adapter/env Generated configuration file: /compose_location/docker-compose.yml Clean up the input dir Note: stopping existing Harbor instance ... WARN[0000] /opt/harbor/docker-compose.yml: `version` is obsolete [+] Running 10/10 ✔ Container nginx Removed 0.4s ✔ Container registryctl Removed 0.4s ✔ Container harbor-jobservice Removed 0.3s ✔ Container harbor-portal Removed 0.3s ✔ Container harbor-core Removed 0.3s ✔ Container harbor-db Removed 0.3s ✔ Container redis Removed 0.4s ✔ Container registry Removed 0.3s ✔ Container harbor-log Removed 10.2s ✔ Network harbor_harbor Removed 0.2s [Step 5]: starting Harbor ... WARN[0000] /opt/harbor/docker-compose.yml: `version` is obsolete [+] Running 11/11 ✔ Network harbor_harbor Created 0.1s ✔ Container harbor-log Started 0.6s ✔ Container harbor-portal Started 1.1s ✔ Container registryctl Started 1.0s ✔ Container registry Started 1.2s ✔ Container redis Started 1.1s ✔ Container harbor-db Started 1.1s ✔ Container trivy-adapter Started 1.4s ✔ Container harbor-core Started 1.4s ✔ Container harbor-jobservice Started 1.9s ✔ Container nginx Started 1.9s ✔ ----Harbor has been installed and started successfully.---- root@registry-labs:/opt/harbor# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5d65e2d299d4 goharbor/harbor-jobservice:v2.10.2 "/harbor/entrypoint.…" 7 minutes ago Up 7 minutes (healthy) harbor-jobservice ff52214bdd21 goharbor/nginx-photon:v2.10.2 "nginx -g 'daemon of…" 7 minutes ago Up 7 minutes (healthy) 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp nginx 6cae550c41fa goharbor/harbor-core:v2.10.2 "/harbor/entrypoint.…" 7 minutes ago Up 7 minutes (healthy) harbor-core 98a5e46b4e31 goharbor/trivy-adapter-photon:v2.10.2 "/home/scanner/entry…" 7 minutes ago Up 7 minutes (healthy) trivy-adapter 8188502331a8 goharbor/harbor-portal:v2.10.2 "nginx -g 'daemon of…" 7 minutes ago Up 7 minutes (healthy) harbor-portal 59f3f7f49667 goharbor/harbor-registryctl:v2.10.2 "/home/harbor/start.…" 7 minutes ago Up 7 minutes (healthy) registryctl 8567cbaa3cd7 goharbor/registry-photon:v2.10.2 "/home/harbor/entryp…" 7 minutes ago Up 7 minutes (healthy) registry b40de7a6016f goharbor/harbor-db:v2.10.2 "/docker-entrypoint.…" 7 minutes ago Up 7 minutes (healthy) harbor-db bf4c8b982a5e goharbor/redis-photon:v2.10.2 "redis-server /etc/r…" 7 minutes ago Up 7 minutes (healthy) redis 83912e1b9515 goharbor/harbor-log:v2.10.2 "/bin/sh -c /usr/loc…" 7 minutes ago Up 7 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log root@registry-labs:/opt/harbor#