[SOLVED] OCI container not functional (postgres latest)

Colin 't Hart

Renowned Member
Jan 20, 2017
72
12
73
52
Frösön, Sweden
hiawathaavenue.com
I'm a freelance Postgres DBA and use Proxmox to host a plethora of containers and VMs for work (research mainly) for my clients. It's been an absolute godsend, so a huge THANKS for making Proxmox!

I found the new OCI support interesting, so I searched the OCI registry for "postgres" and chose "latest". Then I created a container and assigned it an IP address.

When I go to start it it just says "OK" and after that it's not running.

What do I do next?
 
Postgres containers need the password set via an environment variable if I remember correctly. If the password cannot be found they'll print a warning and then shut themselves off. Sadly we currently have no proper way of capturing that warning so it looks like nothing is happening to you.

Try setting the POSTGRES_PASSWORD variable in the containers settings. Go to Options, double-click the line that reads Environment and add the variable with an appropriate value in the dialog that should open. Once that's done, try to restart the container.
 
Last edited:
Postgres containers need the password set via an environment variable if I remember correctly. If the password cannot be found they'll print a warning and then shut themselves off. Sadly we currently have no proper way of capturing that warning so it looks like nothing is happening to you.

Try setting the POSTGRES_PASSWORD variable in the containers settings. Go to Options, double-click the line that reads Environment and add the variable with an appropriate value in the dialog that should open. Once that's done, try to restart the container.
Thanks, that worked!
 
  • Like
Reactions: Johannes S
Thanks, that worked!
Great to hear, please mark this thread as solved, so others with a similar issue can find it more easily. Click the “Edit thread” button above and select the “SOLVED” prefix to do so. Thanks!