In index 6.5: Create a PostgreSQL 13 container that uses the rpi-store-data-pg13 volume.
[student@workstation ~]$ podman run -d \ --name persisting-pg13 \ -e POSTGRESQL_USER=backend \ -e POSTGRESQL_PASSWORD=secret_pass \ -e POSTGRESQL_DATABASE=rpi-store \ -v rpi-store-data-pg13:/var/lib/pgsql/data \ registry.ocp4.example.com:8443/rhel9/postgresql-13:1 00e9...36a8
--> container persisting-pg13was exited!
[student@workstation ~]$ podman exec persisting-pg13 \ pg_restore -d rpi-store /tmp/db_dump no output expected
--> then the command above running with error can only exec sessions on running containers: container state improper.
I also had an issue in that exercise.
After 5.4 when I try to access localhost:5050. I get "Connection was reset". Anyone know how to fix this?
When mounting the folder for rpi-store-data, it is missing the :Z at the end.
If you run it without that and check the logs (podman logs persistent-12, or run it without -d), you will see "mkdir: cannot create directory '/var/lib/pgsql/data': Permission denied".
Hello @ptt342 !
Thanks for reaching out !
I am unable to reproduce this in Ch05s04 lab :
Please redo this lab again and verify the same.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.