
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/imresamu/docker-postgis/workflows/Build%20PostGIS%20images/badge.svg](https://github.com/imresamu/docker-postgis/actions) ![Join the chat at []]([]
Important: Please note that this README document is larger than the 25,000 character limit set by Docker Hub. As a result, the version available on Docker Hub will be trimmed and not complete. For the complete and untrimmed version of the README, it is recommended to visit the project GitHub page: https://github.com/ImreSamu/docker-postgis/blob/master/README.md
The imresamu/postgis image provides tags for running Postgres with PostGIS extensions installed. This image is based on the official https://registry.hub.docker.com/_/postgres/ image and provides debian and alpine variants for PostGIS which is compatible with PostgreSQL versions 13, 14, 15, 16 and 17. Additionally, an image version is provided which is built from the latest two versions of Postgres (16,17) with versions of PostGIS and its dependencies built from their respective master branches.
This image ensures that the default database created by the parent postgres image will have the following extensions installed:
| installed extensions | https://github.com/imresamu/docker-postgis/blob/master/initdb-postgis.sh |
|---|---|
postgis | yes |
postgis_topology | yes |
postgis_tiger_geocoder | yes |
postgis_raster | |
postgis_sfcgal | |
address_standardizer | |
address_standardizer_data_us |
Unless -e POSTGRES_DB is passed to the container at startup time, this database will be named after the admin user (either postgres or the user specified with -e POSTGRES_USER). If you would prefer to use the older template database mechanism for enabling PostGIS, the image also provides a PostGIS-enabled template database called template_postgis.
We provide multi-platform image support for the following architectures:
amd64: Also known as x86-64.
--platform=linux/amd64 when specifying the platform.arm64: Also known as AArch64.
--platform=linux/arm64 when specifying the platform.Notes:
arm64 architecture support is still experimental. Please refer to the 'arch' column in the version information to determine whether an arm64 version is available for a specific release.| Arch | Build system | Status |
|---|---|---|
| Amd64 | https://github.com/ImreSamu/docker-postgis/actions/workflows/main.yml | https://github.com/ImreSamu/docker-postgis/actions/workflows/main.yml/badge.svg](https://github.com/ImreSamu/docker-postgis/actions/workflows/main.yml) |
| Arm64 | CircleCI-logs | imresamu/postgis:17-recent-bookworm: (experimental) Latest postgis with the latest geos,proj,gdal,sfcgal. ( debian based, extending is complex ! )imresamu/postgis:16-3.5-bundle0-bookworm: (experimental) This image includes additional geospatial-related extras along with PostgreSQL and PostGIS.docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/13-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 13 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/14-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 14 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/15-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 15 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/16-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 16 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/17-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 17 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-3.6-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-3.6.1-bookworm | https://github.com/imresamu/docker-postgis/blob/master/18-3.6/bookworm/Dockerfile | amd64 arm64 | bookworm | 18 | 3.6.1 |
docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6 | https://github.com/imresamu/docker-postgis/blob/master/13-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 13 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6 | https://github.com/imresamu/docker-postgis/blob/master/14-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 14 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6 | https://github.com/imresamu/docker-postgis/blob/master/15-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 15 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6 | https://github.com/imresamu/docker-postgis/blob/master/16-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 16 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6 | https://github.com/imresamu/docker-postgis/blob/master/17-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 17 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-3.6-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-3.6.1-trixie, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-3.6, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=latest | https://github.com/imresamu/docker-postgis/blob/master/18-3.6/trixie/Dockerfile | amd64 arm64 | trixie | 18 | 3.6.1 |
*-master images ( same Dockerfile template ) However, for every build, we use the latest released tag from each library (such as postgis, geos, proj, gdal, cgal, sfcgal).docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-recent-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-recent-postgis3.6.1-geos3.14.1-proj9.7.1-gdal3.12.1-cgal6.1-sfcgal2.2.0-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-recent-postgis3.6-geos3.14-proj9.7-gdal3.12-cgal6.1-sfcgal2.2-bookworm | https://github.com/imresamu/docker-postgis/blob/master/17-recent/bookworm/Dockerfile | amd64 arm64 | bookworm | 17 | postgis=tags/3.6.1, geos=tags/3.14.1, proj=tags/9.7.1, gdal=tags/v3.12.1, cgal=tags/v6.1, sfcgal=tags/v2.2.0 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-recent-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-recent-postgis3.6.1-geos3.14.1-proj9.7.1-gdal3.12.1-cgal6.1-sfcgal2.2.0-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=18-recent-postgis3.6-geos3.14-proj9.7-gdal3.12-cgal6.1-sfcgal2.2-bookworm | https://github.com/imresamu/docker-postgis/blob/master/18-recent/bookworm/Dockerfile | amd64 arm64 | bookworm | 18 | postgis=tags/3.6.1, geos=tags/3.14.1, proj=tags/9.7.1, gdal=tags/v3.12.1, cgal=tags/v6.1, sfcgal=tags/v2.2.0 |
This repository provides Debian-based PostGIS Docker images enriched with additional geospatial packages such as pgRouting, https://github.com/zachasme/h3-pg, https://github.com/pramsey/pgsql-ogr-fdw, MobilityDB, PL/Python3, https://pgpointcloud.github.io/pointcloud/, https://github.com/pgvector/pgvector, TimeScaleDB and others. These images serve as a comprehensive solution for various server side geospatial needs. Please note that the included package list is subject to change as we continue to refine the 'bundle0'.
docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6-bundle0-bookworm, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6.1-bundle0-bookworm | https://github.com/imresamu/docker-postgis/blob/master/17-3.6-bundle0/bookworm/Dockerfile | amd64 arm64 | bookworm | 17 | 3.6.1 |
docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.3-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.3.8-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/13-3.3/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 13 | 3.3.8 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.4-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.4.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/13-3.4/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 13 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.5-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.5.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/13-3.5/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 13 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6.1-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/13-3.6/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 13 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.3-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.3.8-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/14-3.3/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 14 | 3.3.8 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.4-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.4.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/14-3.4/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 14 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.5-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.5.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/14-3.5/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 14 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6.1-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/14-3.6/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 14 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.3-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.3.8-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/15-3.3/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 15 | 3.3.8 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.4-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.4.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/15-3.4/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 15 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.5-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.5.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/15-3.5/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 15 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.6.1-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/15-3.6/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 15 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.3-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.3.8-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/16-3.3/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 16 | 3.3.8 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.4-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.4.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/16-3.4/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 16 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=16-3.6.1-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/16-3.6/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 16 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.4-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.4.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/17-3.4/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 17 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.5-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.5.4-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/17-3.5/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 17 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6-alpine3.21, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=17-3.6.1-alpine3.21 | https://github.com/imresamu/docker-postgis/blob/master/17-3.6/alpine3.21/Dockerfile | amd64 arm64 | alpine3.21 | 17 | 3.6.1 |
docker.io/imresamu/postgis: tags | Dockerfile | Arch | OS | Postgres | PostGIS |
|---|---|---|---|---|---|
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.4.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.4-alpine | https://github.com/imresamu/docker-postgis/blob/master/13-3.4/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 13 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.5-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.5.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.5-alpine | https://github.com/imresamu/docker-postgis/blob/master/13-3.5/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 13 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6.1-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=13-3.6-alpine | https://github.com/imresamu/docker-postgis/blob/master/13-3.6/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 13 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.4.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.4-alpine | https://github.com/imresamu/docker-postgis/blob/master/14-3.4/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 14 | 3.4.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.5-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.5.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.5-alpine | https://github.com/imresamu/docker-postgis/blob/master/14-3.5/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 14 | 3.5.4 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6.1-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=14-3.6-alpine | https://github.com/imresamu/docker-postgis/blob/master/14-3.6/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 14 | 3.6.1 |
| https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.4.4-alpine3.22, https://registry.hub.docker.com/r/imresamu/postgis/tags?page=1&name=15-3.4-alpine | https://github.com/imresamu/docker-postgis/blob/master/15-3.4/alpine3.22/Dockerfile | amd64 arm64 | alpine3.22 | 15 | 3.4.4 |
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 imresamu/postgis 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: