-
Notifications
You must be signed in to change notification settings - Fork 1
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
Should this persist across docker restarts? #1
Comments
I haven't tried since the update to 17.09, what's the error? Unfortunately, it cannot persist across restarts, because restarts restore the docker vm to its original state. You could modify the container to add an infinite sleep, and then try starting the container with |
Creating the checkpoint doesn't complain, but restoring it does
Here's the tail of the log after all the "Collected..." lines
|
If I understand this, it means that if docker is restarted, the container will restart, but not from the checkpoint, yes? I want to use checkpoint because I have java systems that take a long time to initialize - I work with logic systems implemented in java and initial reasoning to prepare for making queries can be very time consuming. There's no easy way to serialize the state. In the idea case I would want to do something like docker commit but have a checkpoint saved with the commit, and set things so that containers made from the image automatically start from the check-pointed state. Having things wrapped in the image means that I could easily run multiple containers with the same start conditions, and be able to easily distribute. The typical scenario would then be something like using the container to quickly run a query interactively, without paying the startup costs. I'm fairly new to docker. If you know where I might follow discussion of docker's CRIU's implementation plans for it, perhaps you could point me at it so I can get an idea whether things might be heading that way. |
@alanruttenberg, I ran into this issue on checkpointing. I believe it has to do with being unable to restore the TCP sockets, it was alleviated for me by setting the network adapter type to Host |
Thanks for this! This works for me too. |
I'm finding that I have to re-install when I choose restart in the docker menu.
Also, is this known to work in Docker 17.09.0-ce ?
I'm running 17.06.2-ce-mac27 and it works in that, but when I tried to upgrade it failed. Thought I'd ask so I can know whether it's something I did.
Thanks!
The text was updated successfully, but these errors were encountered: