0

I want to use checkpoint in docker. I refer this doc to learn.enter link description here But I have some problems. When I type docker checkpoint $cid, docker tell me checkpoint is not a docker command, I don't know how to solve this problem.

Wangs-MacBook-Pro:~ wxc575843$ export cid=$(docker run -d busybox tail -f /dev/null)
Wangs-MacBook-Pro:~ wxc575843$ docker checkpoint $cid
docker: 'checkpoint' is not a docker command.
See 'docker --help'.
Roman
  • 19,581
  • 6
  • 68
  • 84
王晓晨
  • 336
  • 2
  • 13

2 Answers2

1

Docker supports "checkpoint and restore" of a container, thanks to the CRIU integration with Docker. But, it is in the experimental mode so be careful.

The correct command to checkpoint a Docker container :

docker checkpoint create [OPTIONS] CONTAINER CHECKPOINT

Reference :

https://docs.docker.com/engine/reference/commandline/checkpoint_create/

An example of how to checkpoint and restore a container in a single host is given:

Container migration in Docker

Arif A.
  • 933
  • 8
  • 14
0

The client and daemon API must both be at least 1.25 to use this command. Or Docker Version 1.13 and above. Also, you need to enable experimental mode in your docker engine.

check this out: https://github.com/moby/moby/issues/30996