Symptom:
When we build postgresql 9.5 docker image, we/usr/bin/postgresql-setup initdb no such file or directory
Solution:
It is due to initdb was not in default PATH . By default, yum installs initdb at /usr/pgsql-9.5/binTo fix that we add below line into Dockerfile
RUN ln -s /usr/pgsql-9.5/bin/initdb /usr/bin/initdb
The full Dockerfile details of Postgresql 9.5 is on github link
No comments:
Post a Comment