Skip to content
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

CRIU not checkpointing docker container #1269

Closed
mikosa opened this issue Nov 10, 2020 · 1 comment
Closed

CRIU not checkpointing docker container #1269

mikosa opened this issue Nov 10, 2020 · 1 comment

Comments

@mikosa
Copy link

mikosa commented Nov 10, 2020

root@instance-1:/home/mike# criu -V
Version: 3.14
root@instance-1:/home/mike# docker run --name cr -d busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); slee
p 1; done'
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
9758c28807f2: Pull complete 
Digest: sha256:a9286defaba7b3a519d585ba0e37d0b2cbee74ebfe590960b0b1d6a5e97d1e1d
Status: Downloaded newer image for busybox:latest
0fe1738a3852151d00d5f772d8b72ef61fd02a5323c6950401b39adc096c6a30
root@instance-1:/home/mike# docker logs cr
0
1
2
3
4
5
6
root@instance-1:/home/mike# docker checkpoint create  --leave-running=true cr checkpoint0
checkpoint0
root@instance-1:/home/mike# docker logs cr
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@instance-1:/home/mike# docker stop cr
dcr
root@instance-1:/home/mike# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAM
ES
root@instance-1:/home/mike# docker start --checkpoint checkpoint0 cr
root@instance-1:/home/mike# docker logs cr
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
0
1
2
3
4
5```


the count is supposed to continue from where it ended at the time of checkpoint, but instead it is starting again from 0
@adrianreber
Copy link
Member

Yes, we know. Docker is broken. Also see #1223 and #1243.

You can always use Podman as a drop in replacement if you need checkpoint/restore support.

Closing this as this is a docker problem and not CRIU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants