
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
http://geoserver.org is an open source server for sharing geospatial data. This is a docker image that eases setting up a GeoServer running specifically for https://github.com/GeoNode/geoserver-geonode-ext with an additional separated data directory.
The image is based on the official Tomcat 9 image
This image is available as a https://cloud.docker.com/u/geonode/repository/registry-1.docker.io/geonode/geoserver/, and is the recommended method of installation. Simple pull the image from the docker hub.
bash$ docker pull geonode/geoserver
Alternatively you can build the image locally
bash$ git clone https://github.com/geonode/geoserver-docker.git $ cd geoserver-docker $ docker build -t "geonode/geoserver" .
You can quick start the image using the command line
Before run the container, dowload lastest data-2.xx.x.zip file from [***]
Create folder geoserver on your host:
bash$ sudo mkdir /opt/geoserver/ $ sudo unzip ~/Dowmload/data-2.18.2.zip -d /opt/geoserver/
then run the container:
bash$ docker run --name "geoserver" -v /var/run/docker.sock:/var/run/docker.sock -v /opt/geoserver/data/:/geoserver_data/data -d -p 8080:8080 geonode/geoserver
Point your browser to http://localhost:8080/geoserver and login using GeoServer's default username and password:
There are mainly two different versions of this image which are useful for running GeoNode with different authentication system types. These versions are released as specific tags for two authentication mechanisms:
Cookie based authn:
Oauth2 based authn:
You can declare what version to use along with the data directory tag which corresponds to the same version.
This GeoServer container keeps its configuration data at /geoserver_data/data which is exposed as volume in the dockerfile.
The volume allows for stopping and starting new containers from the same image without losing all the data and custom configuration.
You may want to map this volume to a directory on the host. It will also ease the upgrade process in the future. Volumes can be mounted by passing the -v flag to the docker run command:
bash-v /your/host/data/path:/geoserver_data/data
In case you are running Compose for automatically having GeoServer up and running then a data volume container will be mounted with a default preloaded GEOSERVER_DATA_DIR at the configuration data directory of the container. Make sure that the image from the repository https://github.com/GeoNode/data-docker is available from the https://hub.docker.com/u/geonode/ or has been built locally:
bashdocker build -t geonode/geoserver_data .
Persistance behavior
If you run:
bashdocker-compose stop
Data are retained in the GEOSERVER_DATA_DIR and can then be mounted in a new GeoServer instance by running again:
bashdocker-compose up
If you run:
bashdocker-compose down
Data are completely gone but you can ever start from the base GeoServer Data Directory built for Geonode.
Data directory versions
There has to be a correspondence one-to-one between the data directory version and the tag of the GeoServer image used in the Docker compose file. So at the end you can consume these images below:
GeoServer recommends the usage of a spatial database
PostGIS container (PostgreSQL + GIS Extension)
If you want to use a PostGIS container, you can link it to this image. You're free to use any PostGIS container. An example with https://registry.hub.docker.com/u/kartoza/postgis/ image:
bash$ docker run -d --name="postgis" kartoza/postgis
For further information see https://registry.hub.docker.com/u/kartoza/postgis/.
Now start the GeoServer instance by adding the --link option to the docker run command:
bash--link postgis:postgis
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务