geoserver

chbrandt/geoserver Docker Image

基于Apache Tomcat的GeoServer Docker容器,使用Web Archive分发包,提供地理数据服务,支持数据目录配置与端口映射,便于快速部署地理信息系统服务。

下载次数: 0状态:社区镜像维护者:chbrandt仓库类型:镜像最近更新:5 年前
下载命令
点击查看

docker-geoserver

Docker container for http://geoserver.org/ on top of http://tomcat.apache.org/, using the http://geoserver.org/release/stable/ distribution package.

For docker images already built, check DockerHub' https://hub.docker.com/r/chbrandt/geoserver.


Container settings:

  • Exposed port is 8080 (Tomcat's default)
  • https://docs.geoserver.org/latest/en/user/gettingstarted/web-admin-quickstart/index.html#logging-in:
    • username: admin
    • password: geoserver
  • https://docs.geoserver.org/stable/en/user/datadirectory/setting.html is:
    • GEOSERVER_DATA_DIR='/var/lib/geoserver_data'

Run container

Run the (latest) container:

bash
$ docker run -p 8080:8080 chbrandt/geoserver

Give it a data directory to copy/publish:

bash
$ docker run -v $PWD/data:/data \
             -p 8080:8080 chbrandt/geoserver

Then go to your browser' http://localhost:8080/geoserver.

Build your image

If you want to create an image for a particular version of GeoServer you can give docker build an argument specifying it:

bash
$ cd dockerfile/
$ docker build --build-arg GEOSERVER_VERSION=2.15.3 -t my_geoserver .

Relocating the data directory

By default, the data is stored under data/ in the root of GeoServer installation, in a Tomcat/WAR setup it is at ${CATALINA_HOME}/webapps/geoserver/data/.

To change it one can define an environment variable 'GEOSERVER_DATA_DIR' defining the path to use instead. E.g.,

$ docker run -e GEOSERVER_DATA_DIR='/var/lib/geoserver_data' \
  -p 8080:8080 chbrandt/geoserver

See GeoServer' https://docs.geoserver.org/latest/en/user/datadirectory/setting.html#web-archive

镜像拉取方式

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

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

docker pull docker.xuanyuan.run/chbrandt/geoserver:<标签>

DockerHub 原生拉取命令

docker pull chbrandt/geoserver:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告