Back to Writing
NOTESdockerpostgresqltroubleshootingdevops
Docker — PostgreSQL Permission Error Fix
July 21, 2021•Updated Feb 17, 2026
If a container created with the sameersbn/postgresql:12-20200524 image keeps shutting down due to permission errors in the logs, removing the volume mount and toggling it off and on again resolves the issue.
Since it's a database and there's rarely a need to access it through a mount, this workaround works fine for now.