<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>you have to restart Tomcat or your java application server where geoserver is deployed. However there are several strategies to set the data directory location, you can choice your preferred from [1]. Despite this commonly works inside a docker container every time you destroy it then your data dir would be lost if that resides locally unless you adopt a strategy with a docker volume [2]</div><div><br></div><div>Francesco</div><div><br></div><div>[1] <a href="http://docs.geoserver.org/latest/en/user/datadirectory/setting.html#datadir-setting">http://docs.geoserver.org/latest/en/user/datadirectory/setting.html#datadir-setting</a></div><div>[2] <a href="https://docs.docker.com/engine/tutorials/dockervolumes/">https://docs.docker.com/engine/tutorials/dockervolumes/</a></div><div><br><div><div>Il giorno 15/lug/2016, alle ore 12:30, admire <<a href="mailto:addloe@gmail.com">addloe@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>Hi<br><br>I am using the geonode in docker container and would like to set the<br>geoserver data directory not to be persistent with the container because<br>I would like to build and destroy the container without losing any data.<br>I know in geoserver if you need to have a different data directory you<br>have to change web.xml.<br><br>I can change that but how do I get to restart geoserver inside the<br>container so that the changes take effect.<br><br>Regards<br><br><br><br>_______________________________________________<br>geonode-users mailing list<br><a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/geonode-users<br></blockquote></div><br></div></body></html>