You can commit your container, if you want to store your changes (e.g. your code).
I’m usually not saving the container and mount a folder to store my source code files, but your workflow might be different of course.
Otherwise, you could simply kill it and restart it with --ipc=host.