postgis

imresamu/postgis Docker Image

这是一个用于PostGIS/PostGIS镜像的测试用仓库,其中PostGIS是基于PostgreSQL的开源空间数据库扩展,该仓库的GitHub地址为[]

16 次收藏下载次数: 0状态:社区镜像维护者:imresamu仓库类型:镜像最近更新:
下载命令
点击查看

🚧🔧💡🧹 WIP: Experimental development:

  • 🧪🐳 test images (amd64 + arm64) for the users: https://hub.docker.com/r/imresamu/postgis
    • 🧪 internal amd64 only repo: https://hub.docker.com/r/imresamu/postgis-amd64/tags
    • 🧪 internal arm64 only repo: https://hub.docker.com/r/imresamu/postgis-arm64/tags
  • 🧪 code: https://github.com/ImreSamu/docker-postgis
  • Status: Experimental, under active development

🐳🐘🌍 postgis/postgis

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 http://postgis.net/ 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 extensionshttps://github.com/imresamu/docker-postgis/blob/master/initdb-postgis.sh
postgisyes
postgis_topologyyes
postgis_tiger_geocoderyes
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.

Versions (2025-12-22)

We provide multi-platform image support for the following architectures:

  • amd64: Also known as x86-64.
    • Use --platform=linux/amd64 when specifying the platform.
  • arm64: Also known as AArch64.
    • Use --platform=linux/arm64 when specifying the platform.

Notes:

  • The 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.
  • We currently do not support 32-bit architectures. Our images are only available for 64-bit architectures.

Build Status

ArchBuild systemStatus
Amd64https://github.com/ImreSamu/docker-postgis/actions/workflows/main.yml
Arm64https://app.circleci.com/pipelines/github/ImreSamu/docker-postgis

🌟Recommended Versions for New Users

For those new to PostGIS, we recommend the following image versions:

  • imresamu/postgis:17-3.5-bookworm: This image includes a minimal setup of PostgreSQL with the PostGIS extension. ( debian bookworm based, easy to extend with debian packages )
  • 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.

🥇Debian - bookworm (recommended)

  • This Docker-PostGIS version has a cautious release cycle to guarantee high stability.
    • By "cautious", we mean it does not always have the latest versions of geos, proj, gdal, and sfcgal packages.
  • We use PostGIS, geos, proj, gdal, and sfcgal packages from the Debian repository. The versions are: geos=3.11, gdal=3.6, proj=9.1, and sfcgal=1.4.
  • This version is easy to extend and has matured over time.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/13-3.6/bookworm/Dockerfileamd64 arm64bookworm133.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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/14-3.6/bookworm/Dockerfileamd64 arm64bookworm143.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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/15-3.6/bookworm/Dockerfileamd64 arm64bookworm153.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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/16-3.6/bookworm/Dockerfileamd64 arm64bookworm163.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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/17-3.6/bookworm/Dockerfileamd64 arm64bookworm173.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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/18-3.6/bookworm/Dockerfileamd64 arm64bookworm183.6.1

📘Debian - Trixie

  • We use PostGIS, geos, proj, gdal, and sfcgal packages from the Debian repository.
    • In the Debian Trixie repository, the versions are: geos=3.13, gdal=3.10, proj=9.6, and sfcgal=2.0.
  • This version is easy to extend and has matured over time.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
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.6https://github.com/imresamu/docker-postgis/blob/master/13-3.6/trixie/Dockerfileamd64 arm64trixie133.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.6https://github.com/imresamu/docker-postgis/blob/master/14-3.6/trixie/Dockerfileamd64 arm64trixie143.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.6https://github.com/imresamu/docker-postgis/blob/master/15-3.6/trixie/Dockerfileamd64 arm64trixie153.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.6https://github.com/imresamu/docker-postgis/blob/master/16-3.6/trixie/Dockerfileamd64 arm64trixie163.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.6https://github.com/imresamu/docker-postgis/blob/master/17-3.6/trixie/Dockerfileamd64 arm64trixie173.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=latesthttps://github.com/imresamu/docker-postgis/blob/master/18-3.6/trixie/Dockerfileamd64 arm64trixie183.6.1

🧪Recent ( experimental )

  • These images are similar to the debian-based *-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).
  • These images are ideal for testing purposes, but expanding them is not straightforward.
  • The specific versions of the libraries used (like postgis, geos, proj, gdal, cgal, sfcgal) can be found in the tags of the image or in the Dockerfile.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/17-recent/bookworm/Dockerfileamd64 arm64bookworm17postgis=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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/18-recent/bookworm/Dockerfileamd64 arm64bookworm18postgis=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

🧪Debian Geo Bundle ( experimental )

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, https://www.postgresql.org/docs/current/plpython.html, https://pgpointcloud.github.io/pointcloud/, https://github.com/pgvector/pgvector, https://www.timescale.com/ 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: tagsDockerfileArchOSPostgresPostGIS
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-bookwormhttps://github.com/imresamu/docker-postgis/blob/master/17-3.6-bundle0/bookworm/Dockerfileamd64 arm64bookworm173.6.1

⛰️Alpine 3.21 based

  • The base operating system is https://alpinelinux.org/. It is designed to be small, simple, and secure, and it's based on https://musl.libc.org/.
  • In the Alpine 3.21 version, the package versions are: geos=3.13, gdal=3.10, proj=9.5, and sfcgal=2.0
  • PostGIS is compiled from source, making it a bit more challenging to extend.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
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.21https://github.com/imresamu/docker-postgis/blob/master/13-3.3/alpine3.21/Dockerfileamd64 arm64alpine3.21133.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.21https://github.com/imresamu/docker-postgis/blob/master/13-3.4/alpine3.21/Dockerfileamd64 arm64alpine3.21133.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.21https://github.com/imresamu/docker-postgis/blob/master/13-3.5/alpine3.21/Dockerfileamd64 arm64alpine3.21133.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.21https://github.com/imresamu/docker-postgis/blob/master/13-3.6/alpine3.21/Dockerfileamd64 arm64alpine3.21133.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.21https://github.com/imresamu/docker-postgis/blob/master/14-3.3/alpine3.21/Dockerfileamd64 arm64alpine3.21143.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.21https://github.com/imresamu/docker-postgis/blob/master/14-3.4/alpine3.21/Dockerfileamd64 arm64alpine3.21143.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.21https://github.com/imresamu/docker-postgis/blob/master/14-3.5/alpine3.21/Dockerfileamd64 arm64alpine3.21143.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.21https://github.com/imresamu/docker-postgis/blob/master/14-3.6/alpine3.21/Dockerfileamd64 arm64alpine3.21143.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.21https://github.com/imresamu/docker-postgis/blob/master/15-3.3/alpine3.21/Dockerfileamd64 arm64alpine3.21153.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.21https://github.com/imresamu/docker-postgis/blob/master/15-3.4/alpine3.21/Dockerfileamd64 arm64alpine3.21153.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.21https://github.com/imresamu/docker-postgis/blob/master/15-3.5/alpine3.21/Dockerfileamd64 arm64alpine3.21153.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.21https://github.com/imresamu/docker-postgis/blob/master/15-3.6/alpine3.21/Dockerfileamd64 arm64alpine3.21153.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.21https://github.com/imresamu/docker-postgis/blob/master/16-3.3/alpine3.21/Dockerfileamd64 arm64alpine3.21163.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.21https://github.com/imresamu/docker-postgis/blob/master/16-3.4/alpine3.21/Dockerfileamd64 arm64alpine3.21163.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.21https://github.com/imresamu/docker-postgis/blob/master/16-3.6/alpine3.21/Dockerfileamd64 arm64alpine3.21163.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.21https://github.com/imresamu/docker-postgis/blob/master/17-3.4/alpine3.21/Dockerfileamd64 arm64alpine3.21173.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.21https://github.com/imresamu/docker-postgis/blob/master/17-3.5/alpine3.21/Dockerfileamd64 arm64alpine3.21173.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.21https://github.com/imresamu/docker-postgis/blob/master/17-3.6/alpine3.21/Dockerfileamd64 arm64alpine3.21173.6.1

⛰️Alpine 3.22 based

  • The base operating system is https://alpinelinux.org/. It is designed to be small, simple, and secure, and it's based on https://musl.libc.org/.
  • In the Alpine 3.22 version, the package versions are: geos=3.13.1, gdal=3.10.2, proj=9.6.0, and sfcgal=2.0.0
  • PostGIS is compiled from source, making it a bit more challenging to extend.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/13-3.4/alpine3.22/Dockerfileamd64 arm64alpine3.22133.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/13-3.5/alpine3.22/Dockerfileamd64 arm64alpine3.22133.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/13-3.6/alpine3.22/Dockerfileamd64 arm64alpine3.22133.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/14-3.4/alpine3.22/Dockerfileamd64 arm64alpine3.22143.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/14-3.5/alpine3.22/Dockerfileamd64 arm64alpine3.22143.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/14-3.6/alpine3.22/Dockerfileamd64 arm64alpine3.22143.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-alpinehttps://github.com/imresamu/docker-postgis/blob/master/15-3.4/alpine3.22/Dockerfileamd64 arm64alpine3.22153.4.4

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 postgis 镜像标签

docker pull docker.xuanyuan.run/imresamu/postgis:<标签>

DockerHub 原生拉取命令

docker pull imresamu/postgis:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告