I'm running Rstudio (preview) in a Docker container on macOS and Windows. I'm using a bash script to make it easier to start/stop the container. This is working very nicely, except that each time I stop (kill) the docker process and start it back up again, Rstudio shows an error message that the "session was abnormally terminated" and the pervious workspace/environment is not restored.
Is there a way to avoid this message from showing up and restoring the previous workspace from the mounted volume? I expect that Rstudio is not storing sessions on SIGTERM. Is there a way to enforce that?
FYI This is a follow up to Restarting Rstudio Server in Docker: Avoid Error Message
EDIT: Perhaps a related issue. When trying to suspend-all rstudio processes running in a docker container the first command below suggests that this might work. However, the 2nd gives "rsession" no process found
$ docker exec -it 76fe4bbf8716 rstudio-server
$Usage: rstudio-server {status|start|stop|restart|test-config|verify-installation|suspend-session|suspend-all|force-suspend-session|force-suspend-all|kill-session|kill-all|offline|online|active-sessions|version}
$ docker exec -it 76fe4bbf8716 rstudio-server suspend-all
rsession: no process found