nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

nerdctl checkpoint command support

Open Zheaoli opened this issue 3 years ago • 7 comments

What is the problem you're trying to solve

To support the checkpoint feature in nerdctl.

Describe the solution you'd like

I'll make a try to support the checkpoint feature in the nerdctl with the following steps

  1. I will implement three commands
    1. nerdctl checkpoint create
    2. nerdctl checkpoint ls
    3. nerdctl checkpoint rm
  2. Add a new flag --checkpoint in nerdctl start command.

Additional context

For now, maybe we can only support checkpoint feature for Linux

Zheaoli avatar Mar 31 '22 08:03 Zheaoli

According to this issue https://github.com/checkpoint-restore/criu/issues/860

If we want to add a checkpoint command to the nerdctl, there will be some error in CI before the kernel and CRIU project fix this issue

Zheaoli avatar Apr 02 '22 14:04 Zheaoli

I will close this issue first

Zheaoli avatar Apr 04 '22 15:04 Zheaoli

this is implemented in ctr https://github.com/containerd/containerd/blob/main/cmd/ctr/commands/run/run.go#L188 do they have the same problem !?

fahedouch avatar Apr 04 '22 16:04 fahedouch

@fahedouch The answer is yes.

The containerd tested the checkpoint feature base on Ubuntu 20.04 with kernel 5.4.

But in the newest kernel, 5.13, the command would be failed.

Actually, I'm not sure we need to add this command because the CRIU is not stable

Zheaoli avatar Apr 04 '22 16:04 Zheaoli

Per discussion in #checkpoint-restore/criu/issues/860 the issue was fixed.

Actually, I'm not sure we need to add this command because the CRIU is not stable

docker, ctr and runc have checkpoint feature, so it would be cool if nerdctl also had it. I'd say CRIU is quite stable, just that it depends on the Linux kernel which may have bugs and new features.

danylo1999 avatar Mar 24 '23 11:03 danylo1999

Per discussion in #checkpoint-restore/criu/issues/860 the issue was fixed.

Actually, I'm not sure we need to add this command because the CRIU is not stable

docker, ctr and runc have checkpoint feature, so it would be cool if nerdctl also had it. I'd say CRIU is quite stable, just that it depends on the Linux kernel which may have bugs and new features.

podman also supports checkpoint, looking forward to nerdctl to support it also

panpan0000 avatar Jan 08 '25 09:01 panpan0000

+1

xuchenCN avatar Jul 10 '25 08:07 xuchenCN