Docker Community Forums

Share and learn in the Docker community.

Postgres not working in docker container

Dear All,

Topic: postgres in docker container.

I am using docker community edition in Ubunto 16.04
Created a docker image with base as Ubunto 16.04 and installing Java,Spark,Hadoop,Python 3.6 naming this image as masterimage. Now while running this in Docker container, I am installing postgres on it. but while entering psql using postgres user getting following error:

Can not locate strict.pm /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/strict.pm: permission denied at /usr/bin/psql line no 19.

I am using docker community edition

Thanks
Manoj Kumar