Expected behavior and actual behavior:
When installing harbor on Debian 9 some of the related containers (harbor-db, harbor-ui, clair) are restarting constantly with exit state Exit 137, I was expecting them to start only once without any problem. When checking logs of postgresql service I can see initdb: directory "/var/lib/postgresql/data" exists but is not empty message.
Steps to reproduce the problem:
Install harbor on Debian 9 and check the status of the containers with docker-compose ps
Versions:
Please specify the versions of following systems.
Additional context:
PGDATA=/tmp as environment variable for postgresql service./install.sh --with-notary --with-clair --with-chartmuseumHave you tried cleanup the directory mounted to /var/lib/postgresql/data and reinstall, it's /data/database by default.
That did the trick thanks @cd1989
that workaround worked fine, thanks @adomenech73
Most helpful comment
Have you tried cleanup the directory mounted to
/var/lib/postgresql/dataand reinstall, it's/data/databaseby default.