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

Restore network connectivity after container restore #30

Open
wants to merge 1 commit into
base: cr-combined
Choose a base branch
from
Open

Restore network connectivity after container restore #30

wants to merge 1 commit into from

Conversation

SaiedKazemi
Copy link

This is a work-in-progress implementation of restoring network connectivty
after container restore. Its main purpose is for testing and starting
a conversation for a production-quality implementation.

Signed-off-by: Saied Kazemi [email protected]

This is a work-in-progress implementation of restoring network connectivty
after container restore.  Its main purpose is for testing and starting
a conversation for a production-quality implementation.

Signed-off-by: Saied Kazemi <[email protected]>
@hixichen
Copy link

hi , doest this means we will get a 'Broken pipe error'.
I faced a issue that:
docker run -d -p xx:xx --name server server #run as a server , bind and listening to some port.

after docker checkpoint and restore .

I can not connect to the server anymore.

sock.sendall(data)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 32] Broken pipe

thanks

@SaiedKazemi
Copy link
Author

Please use Ross Boucher's docker-checkpoint-restore branch for checkpoint restore.

@hixichen
Copy link

hixichen commented Jun 15, 2016

thank you!

I found this #19

docker version: Docker version 1.9.0-dev, build 59c375a, experimental
get from here: https://github.com/boucher/docker/releases/tag/v1.9.0-experimental-cr.1

CRIU vesion: 2.2

After applied the --net=host option, I found the process numbers has difference.

without option , docker will create two process.

root 23376 0.1 1.5 121968 15784 ? Sl 22:35 0:00 _ docker-proxy -proto tcp -host-ip 0.0.0.0 -host-
root 23394 23.3 4.2 412488 42836 ? Ssl 22:35 0:01 _ ./myapp

I guess maybe it happened because the FIFO between two processes was not handled very well.
I will try to find more information.

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

Successfully merging this pull request may close these issues.

2 participants