Harbor 2.3.0 安装报错Cannot start service registry: failed to create task for container: failed to initi

Harbor 2.3.0 安装报错如下:

安装错误:

[Step 5]: starting Harbor ...
Creating network "harbor_harbor" with the default driver
Creating harbor-log ... done
Creating harbor-portal ... 
Creating harbor-db     ... 
Creating registry      ... error
Creating harbor-portal ... error
Creating registryctl   ... 

ERROR: for registry  Cannot start service registry: failed to create task for container: failed to initialize logging driver: 
Creating harbor-db     ... error

ERROR: for harbor-portal  Cannot start service portal: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

Creating redis         ... errorr: dial tcp [::1]:1514: connect: connection refused

ERROR: for redis  Cannot start service redis: failed to create task for container: failed to initialize logging driver: dial t
Creating registryctl   ... error

ERROR: for registryctl  Cannot start service registryctl: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

ERROR: for registry  Cannot start service registry: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

ERROR: for portal  Cannot start service portal: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

ERROR: for postgresql  Cannot start service postgresql: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

ERROR: for redis  Cannot start service redis: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused

ERROR: for registryctl  Cannot start service registryctl: failed to create task for container: failed to initialize logging driver: dial tcp [::1]:1514: connect: connection refused
ERROR: Encountered errors while bringing up the project.

解决方法:

[root@harbor harbor]# vim /etc/rsyslog.conf

取消以下两行前的注释,保存退出

$ModLoad imtcp

$InputTCPServerRun 1514

重启rsyslog:

[root@harbor harbor]# systemctl restart rsyslog.service

再重新安装harbor

[root@harbor harbor]# ./install.sh

[Step 5]: starting Harbor ...
Creating network "harbor_harbor" with the default driver
Creating harbor-log ... done
Creating harbor-portal ... done
Creating harbor-db     ... done
Creating redis         ... done
Creating registryctl   ... done
Creating registry      ... done
Creating harbor-core   ... done
Creating harbor-jobservice ... done
Creating nginx             ... done
✔ ----Harbor has been installed and started successfully.----