3 ms·
> 1. Docker doesn't deal with running processes (like postgres or redis), only the filesystem state Docker in practice usually doesn't, but in theory it can an
by TheDong 5y ago
> 1. Docker doesn't deal with running processes (like postgres or redis), only the filesystem state
Docker in practice usually doesn't, but in theory it can and should.
A checkpoint/restore demo, of live-migrating running docker containers between servers, including running process state, was shown at Dockercon 2015. I can't find a video right now, but it was demoed then.
The "docker checkpoint" command has existed since docker 1.13.0 (released 2017), which allows checkpointing and restoring the running state of containers, including running processes, with some limitations. https://docs.docker.com/engine/reference/commandline/checkpoint/ https://docs.docker.com/engine/reference/commandline/checkpo...
The reality is just unfortunately that these features are experimental, have been for the last 7+ years, and have taken far longer to mature than would be expected.