Open 631068264 opened 2 years ago
According to the error message, it should be the permission issue of starting the registry mount path. Can you provide the command to start harbor and the relevant permission information for the host directory to be mounted when harbor starts?
@Jeremy-boo I use harbor-online-installer-v2.3.5.tgz with the arm image to start.
start harbor
./install.sh --with-chartmuseum
In docker-compose.yml
registry:
image: goharbor/registry-photon:dev-arm
container_name: registry
restart: always
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
volumes:
- /data/registry:/storage:z
- ./common/config/registry/:/etc/registry/:z
- type: bind
source: /data/secret/registry/root.crt
target: /etc/registry/root.crt
- type: bind
source: ./common/config/shared/trust-certificates
target: /harbor_cust_cert
networks:
- harbor
dns_search: .
depends_on:
- log
logging:
driver: "syslog"
options:
syslog-address: "tcp://localhost:1514"
tag: "registry"
ll ./common/config/registry
总用量 8
-rw-r----- 1 10000 10000 634 11月 14 16:34 config.yml
-rw-r----- 1 root root 82 11月 14 16:34 passwd
-rwxr-xr-x 1 root root 0 11月 14 16:34 root.crt
ll ./common/config
总用量 0
drwxr-xr-x 2 root root 17 11月 14 16:34 chartserver
drwxr-x--- 3 root root 53 11月 14 16:34 core
drwxr-xr-x 2 root root 17 11月 14 16:34 db
drwxr-xr-x 2 10000 10000 35 11月 14 16:34 jobservice
drwxr-xr-x 2 root root 55 11月 14 16:34 log
drwxrwxrwx 3 root root 38 11月 14 16:34 nginx
drwxr-xr-x 2 10000 10000 24 11月 14 16:34 portal
drw-r-xr-x 2 root root 54 11月 14 16:34 registry
drwxr-xr-x 2 root root 35 11月 14 16:34 registryctl
drwxr-x--- 3 root root 32 11月 14 16:34 shared
ll /data/
总用量 0
drwxr-xr-x 2 10000 10000 6 11月 8 14:21 ca_download
drwxr-xr-x 2 10000 10000 6 11月 8 14:21 chart_storage
drwx------ 3 unbound input 18 11月 8 14:21 database
drwxr-xr-x 2 10000 10000 6 11月 8 14:21 job_logs
drwxr-xr-x 4 root root 32 11月 9 15:58 minio
drwxr-xr-x 2 root root 6 11月 7 16:07 nfs
drwxr-xr-x 2 root root 6 11月 7 15:57 nfsdata
drwxr-xr-x 2 unbound input 22 11月 15 10:33 redis
drwxr-xr-x 2 10000 10000 6 11月 8 14:21 registry
drwxr-xr-x 2 10000 10000 6 11月 8 14:21 scandata_exports
drwxr-x--- 6 root root 58 11月 14 16:34 secret
ll /data/registry/
总用量 0
@Jeremy-boo Hi ,I need your help
based on the informaiton you provided, the directory permission of these data is root,You can give these directories more relaxed permissions to try, such as 700
Oh thanks
chmod 777 -R registry registryctl
docker restart registry registryctl
It can run but why?