kartoza / docker-pg-backup

A cron job that will back up databases running in a docker postgres container
GNU General Public License v2.0
474 stars 106 forks source link

when use dbname has "gis*" string, docker can not restart container #49

Closed year112 closed 2 years ago

year112 commented 3 years ago

when i create db name "gis-server" and config with docker-compose volumes /data/gisdata:/var/lib/postgressql ,exec docker restart the container, some problems in logs ERROR: databases "gis" already exists i can not restart the docker container when i rename db "gis-server" to "dbserver" ,it's restart fine.

NyakudyaA commented 3 years ago

when i create db name "gis-server" and config with docker-compose volumes /data/gisdata:/var/lib/postgressql ,exec docker restart the container, some problems in logs ERROR: databases "gis" already exists i can not restart the docker container when i rename db "gis-server" to "dbserver" ,it's restart fine.

What version are you running and if the problem is specific to the database please report it https://github.com/kartoza/docker-postgis so that you can get helped

year112 commented 3 years ago

the image version is kartoza/postgis:9.6-2.4

NyakudyaA commented 3 years ago

the image version is kartoza/postgis:9.6-2.4

I am afraid that 9.6.2 version reached end of life and is no longer supported. There have been a lot of changes which are in the new version but haven't been backported to that image. Maybe try building it yourself using https://github.com/kartoza/docker-postgis/pull/311