checkpoint-restore / criu

Checkpoint/Restore tool
criu.org
Other
2.77k stars 561 forks source link

criu error about docker #2318

Closed wdjiang closed 6 months ago

wdjiang commented 6 months ago

My problem: I am trying to manipulate docker using criu.The following occurs during the criu dump process dump log: criu-dump.log

Error (criu/mount.c:1088): mnt: Mount 1322 ./dev/dri/renderD135 (master_id: 2 shared_id: 0) has unreachable sharing. Try --enable-external-masters.

What does this error mean and should I add the --enable-external-masters option at compile time?

adrianreber commented 6 months ago

That sounds like you are checkpointing a graphical application. That usually doesn't work as CRIU cannot extract the state of the GPU.

Generally speaking if CRIU needs additional options they need to be added to the CRIU command line or in the container case, where you cannot change the command line options, you can add it to the CRIU configuration file. See details in the wiki.

avagin commented 6 months ago

@wdjiang pls add more details how you start a container, what you are dumping and how you execute criu.

wdjiang commented 6 months ago

As you said, criu is too complicated for docker, so we have adopted another solution. Thank you for your reply.