Viewing the /var/log/harbor/adminserver.log log reports the following errors
Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] initializing system configurations…
Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] the path of json configuration storage: /etc/adminserver/config/config.json
Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [DEBUG] [driver_json.go:46]: path of configuration file: /etc/adminserver/config/config.json
Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] the path of key used by key provider: /etc/adminserver/key
Method 1:
Set the permissions and set the owner of the secretkey file in the directory
[root@localhost harbor]# chown 10000:10000 /mycre/secretkey
Then execute
docker-compose down
docker-compose up -d
Method 2:
Restore the path to set the secretkey_path to /data
Switch to the harbor installation directory and do the following
[root@localhost harbor]#docker-compose down
[root@localhost harbor]#rm -rf /data/secretkey
[root@localhost harbor]#./prepare
[root@localhost harbor]#docker-compose up –d
Similar Posts:
- Docker-compose Run Error: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- [Solved] Docker ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket – is it running?
- [Solved] Harbor Install Error: no config file: /root/harbor/harbor.yml
- [Solved] “/usr/local/bin/docker-compose: Permission denied”
- An error is reported when logging into harbor warehouse with docker login of other hosts
- Harbor 443 connect connection refused [How to Solve]
- Docker login harbor 403 Forbidden [How to Solve]
- docker pull Error: Get https://hub.xxx.com/v1/_ping: dial tcp 192.168.1.8:443: getsockopt: connection refused
- [How to]docker http: server gave HTTP response to HTTPS client