我试图将一个wildfly容器迁移到另一个主机like described here。 np容器的示例运行良好。当我用一个简单的jboss / wildfly容器替换这个例子时,我只是在criu尝试恢复其他主机上的容器时收到了这个错误:
Error response from daemon: Cannot restore container <CONTAINER-ID>: criu failed: type NOTIFY errno 0
Error: failed to restore one or more containers
因为我没有找到这个错误的解决方案,所以我编译了linux内核,如criu website和here所述。
之后sudo criu check
打印:
Warn (criu/libnetlink.c:54): ERROR -2 reported by netlink
Warn (criu/libnetlink.c:54): ERROR -2 reported by netlink
Warn (criu/sockets.c:711): The current kernel doesn't support packet_diag
Warn (criu/libnetlink.c:54): ERROR -2 reported by netlink
Warn (criu/sockets.c:721): The current kernel doesn't support netlink_diag
Info prctl: PR_SET_MM_MAP_SIZE is not supported
Looks good.
criu --version
Version: 2.11
docker --version
Docker version 1.6.2, build 7c8fca2
检查点/还原示例shell脚本example运行良好。但是,当我想检查一个容器时
docker run -d --name looper busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
带
criu dump -t $PID --images-dir /tmp/looper
我收到此输出
Error (criu/sockets.c:132): Diag module missing (-2)
Error (criu/sockets.c:132): Diag module missing (-2)
Error (criu/sockets.c:132): Diag module missing (-2)
Error (criu/mount.c:701): mnt: 87:./etc/hosts doesn't have a proper root mount
Error (criu/cr-dump.c:1641): Dumping FAILED.`
我找不到有这些错误的解决方案。是否有任何已知的解决方案来实时迁移野生蝇容器?
提前致谢