Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Docker images save the memory state?

Tags:

docker

Very new to docker, apologies for the trivial question. I'm currently using a VM and creating live snapshots (which of course save the state of the memory, etc), such that when I revert its at that exact moment. Do Docker snapshots work in a similar way? If I snapshot it with a running application will it restore to that same state?

like image 365
Francisco Ryan Tolmasky I Avatar asked Oct 03 '14 19:10

Francisco Ryan Tolmasky I


2 Answers

The CRIU project is working on technology which will make it easy to checkpoint and migrate containers, including RAM snapshots.

like image 56
Andy Avatar answered Sep 20 '22 17:09

Andy


No. It saves "layers", which are essentially overlays on the file system, with some other magic for environment variables, ports, etc. No memory state is saved whatever.

like image 27
seanmcl Avatar answered Sep 17 '22 17:09

seanmcl