criu
criu copied to clipboard
How do I display my modified log message visible when docker container checkpointing?
Hi, I'm currently researching criu for my study. And I'm checking my log (modified criu code) to confirm the image file writing path to the ssd from the main function after issuing the cmd criu dump. And I checked the posix write(fd, buf, size) in write_all function (criu/util.c)
My question is this. If I issue a command with criu dump, I can see the logs clearly on the shell. But if I issue a command with docker checkpoint create, I can't see my logs. What is the reason? Isn't the cmd docker checkpoint create going to cmd criu dump after all?
Steps to reproduce the issue.
criu dump -t 151797 -D cp -j -v4
![]()
I can see my logs well.
docker checkpoint create --checkpoint-dir /home/yejin/fiotest 8dee RedisCheck
I can't see my logs..
Kindly let me know why the logs were not displayed, please... Thnks @adrianreber
If I issue a command with criu dump, I can see the logs clearly on the shell. But if I issue a command with docker checkpoint create, I can't see my logs. What is the reason?
In addition to the command-line interface, CRIU provides an RPC API. docker checkpoint create would invoke containerd, which then invokes runc. runc interacts with CRIU via the RPC API and one of the parameters it provides is a log file. Therefore, all CRIU logs are stored in that log file and not printed out to stdout.
A friendly reminder that this issue had no activity for 30 days.
Thanks
I can see my logs well.
I can't see my logs..