- 下载满足要求的geoserver
docker pull kartoza/geoserver:2.21.1
- 自定义用户密码 启动docker ,数据路径按需求挂载出来/opt/geoserver/data_dir
docker run --name geoserver -p 8080:8080 -v /home/geoserver/data_dir/:/opt/geoserver/data_dir -e GEOSERVER_ADMIN_PASSWORD=geoserver -e GEOSERVER_ADMIN_USER=admin -d kartoza/geoserver:2.21.1
- 进入容器
docker exec -it geoserver bash
- 准备需要的插件,网络原因可能下载失败,多试试
wget https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.1/extensions/geoserver-2.21.1-vectortiles-plugin.zip wget https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.1/extensions/geoserver-2.21.1-mongodb-plugin.zip wget https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.1/extensions/geoserver-2.21.1-css-plugin.zip
https://repo.osgeo.org/repository/release/org/geotools/gt-imagemosaic-jdbc/25.1/gt-imagemosaic-jdbc-25.1.jar - 添加插件
unzip /geoserver-2.21.1-mongodb-plugin.zip -d /usr/local/tomcat/webapps/geoserver/WEB-INF/lib unzip /geoserver-2.21.1-vectortiles-plugin.zip -d /usr/local/tomcat/webapps/geoserver/WEB-INF/lib unzip /geoserver-2.21.1-css-plugin.zip -d /usr/local/tomcat/webapps/geoserver/WEB-INF/lib cp gt-imagemosaic-jdbc-25.1.jar /usr/local/tomcat/webapps/geoserver/WEB-INF/lib
- 重启容器
docker restart geoserver
- 服务登陆界面
http://127.0.0.1:7801/geoserver/web/?1 user:admin pwd:geoserver
标签:zip,plugin,webapps,geoserver,docker,2.21,安装 From: https://www.cnblogs.com/luochunxi/p/16738985.html