
GeoServer 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://registry.hub.docker.com/r/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
bash$ docker run --name "geoserver" -v /var/run/docker.sock:/var/run/docker.sock -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
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务