地址:https://www.cnblogs.com/haolb123/p/16628464.html
创建:postgre
docker pull postgres:14.5
docker run --name postgres --restart=always -e POSTGRES_PASSWORD=postgres -p 5432:25432 -v /docker/postgres-14.5:/var/lib/postgresql/data -d postgres:14.5
docker exec -it postgres bash
psql -U postgres -W
创建gis:
docker run --name postgis --restart=always -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=123456 -e POSTGRES_DBNAME=gis_db -p 5432:5432 -v /docker/postgis/data:/var/lib/postgis/data -v /docker/postgresql/data:/var/lib/postgresql/data -d postgis/postgis
标签:postgres,--,POSTGRES,postgis,linux,docker,data,postgregis From: https://www.cnblogs.com/zcjyzh/p/17450953.html