-
Notifications
You must be signed in to change notification settings - Fork 620
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
[Docker] shows connected TCP socket after adding tcp established in conf #589
Comments
Adrian's PR (opencontainers/runc#1933) for CRIU's configuration file support has not been merged yet into runc. Could try to install runc from his fork?
|
Ok, thanks |
Then you should be able to add the tcp-established option with:
Note that options added in |
@rst0git Sorry to bother you, I am getting failures when I attempt to get adrians runc repo
Also, |
@rst0git Got it working, I cloned adrian repo. |
@rst0git great. Both the checkpoint and restore worked fine. I'm now facing the following error,
whenever I run Googling the error pointed to this page, docker/for-linux#503 |
@harishanand95 I think that you need to build runc with Apparmor support:
|
ah! makes sense. Let me try that |
Great it worked. Thanks @rst0git |
I was able to checkpoint correctly in one machine, but I have the following error on another machine.
runc criu conf
@rst0git I tried giving ghost limit a very high value and I was still getting the following error |
Cc: @adrianreber |
@harishanand95 Are you also using my runc version on the other machine? Can you also share the dump.log from the system where it works? |
@harishanand95 Can you try with |
I tried adding ghost-limit to |
|
|
I'm confused. Is it the upstream or the version from your repo? |
it is the version from @adrianreber 's pr: |
@avagin @rst0git I am facing another issue. bash and few other process (gazebo which i'm working on) stores the hostname in memory. Let create a test container
Now doing a checkpoint and restore on a new container
Bash seems to store the hostname |
Processes storing the hostname is one of the not really solvable problems with process migration. CRIU does not know where the process stores what information (which includes the hostname) and cannot change it. So the process you migrate has to be smart enough to re-read the hostname once it has been migrated. If you have control over the process you can tell the process to re-read the hostname after it receives a certain signal... Or something like that. |
Yeah, that makes sense. |
I am getting a docker checkpoint error as
Full log:
https://termbin.com/dx4c
The criu (version 3.11 used) config file has the following parameters,
cat /etc/criu/default.conf
tcp-established
sudo lsof -p 11246
Where should I add tcp established in docker?
From what I read, I think I should the pass inode of tcp sockets to CRIU, how do I pass them in docker/criu?
The text was updated successfully, but these errors were encountered: