# How can I stop keycloak server from running when I am in a container?

**URL:** <https://forum.keycloak.org/t/how-can-i-stop-keycloak-server-from-running-when-i-am-in-a-container/22145>\
**Category:** Configuring the server\
**Created:** [May 16, 2023, 1:13pm UTC](https://forum.keycloak.org/t/how-can-i-stop-keycloak-server-from-running-when-i-am-in-a-container/22145 "2023-05-16T13:13:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cork8281](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@cork8281](https://forum.keycloak.org/u/cork8281)\
**Post date:** [May 17, 2023, 3:35pm UTC](https://forum.keycloak.org/t/how-can-i-stop-keycloak-server-from-running-when-i-am-in-a-container/22145/3 "2023-05-17T15:35:04Z")

</div>

Thank you for linking the thread. There is [a post](http://forum.keycloak.org/t/keycloak-17-docker-container-how-to-export-import-realm-import-must-be-done-on-container-startup/13619/25) in there explaining that there is an option for Action → Partial import/Partial export in the top right of Realm Settings, which I had missed until now.

This exports a lot of configurations, so now I am wondering a few more things. Is there a particular reason for why this isn’t in the documentation page on importing/exporting? For example is this somehow a different procedure? With the admin GUI there is no option to export users, whereas the commands in the docs indicate that this is possible with the CLI commands.

Also, in the case that I did create the custom image to run the container with another command as suggested, that seems only to be about importing configurations. So am I right in thinking that I should be exporting my configs manually but importing automatically on every container startup?

---

_[View the full topic](https://forum.keycloak.org/t/how-can-i-stop-keycloak-server-from-running-when-i-am-in-a-container/22145)._
