针对你遇到的问题 "pg_ctl: directory "/data/pgdata" is not a database cluster directory",我们可以按照以下步骤进行排查和解决: 确认目录存在与否: 首先,我们需要确认 /data/pgdata 目录确实存在于文件系统中。可以使用以下命令检查: bash ls -ld /data/pgdata 如果目录不存在,你需要创建它,或者指定一个...
Created docker Image of postgres13.7 on photon 4.0. When trying to create the pod out of the the image with data directory volume as a pvc mount getting following error: pg_ctl: directory "/var/lib/postgresql/data" DockerFile: FROM photo...