-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRaC can't checkpoint of spring app running inside a docker container (Mac OSX x86_64) #2
Comments
Could you post complete command line for the app. And dump4.log from the CRaC image directory. |
I followed the article "How to Run a Java Application with CRaC in a Docker Container" to run the app with CRaC inside a Docker container. I repeated the entire process again to gather the most recent information. My docker file looks like:
Then I launched container The application log shows the following:
The dump4.log file contains the following content:
|
get the same output with docker running with wsl2 backend
|
I have also had very similar output with the spring-boot example [https://github.com/CRaC/example-spring-boot/] using docker 4.19 running wsl2 backend (Windows 10 Pro). My Dockerfile is slightly different:
The debugging guide recommends checking whether the SUID bit is set and the criu file is owned by the root user (which was mentioned in a comment to a similar issue yesterday), however when I run After having set/ confirmed the SUID bit and criu ownership details I ran the application and attempted to create a checkpoint but ran into the same error: the output of the dump4.log file is
Could this issue be due to the chmod +x permissions for the jdk set in my Dockerfile? |
I manage to get it working by running as root in WSL, I tried making the container run in privileged mode, and to enable some specifics permissions and nothing worked, at least not in my combination of docker for windows + wsl2 docker backend only running from the root in wsl allowed it to work correctly |
Thanks for the all of the information! We'll look at the issue. |
Hi, |
One more thought. |
Since commenting, I have managed to successfully create and restore from a checkpoint using CRaC on a hosted VM so, from my side at least, this thread can be considered closed. Bottom line is to work in a linux dev environment where you have full control. |
Hi, I trying to run spring boot from your examples with forked tomcat inside docker with latest build 17-crac+5, getting error on the attempt to checkout app, can you give any advice?
Also output of
criu check --all
contains a lot ofnot supported
anddenied
lines maybe it is the reason?The text was updated successfully, but these errors were encountered: