-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Move container to pod #3979
Comments
you cannot currently do this with podman. we have discussed being able to "add" a container with new ports to a pod but that feature is not implemented yet either. |
You can add a container to an existing container my combining the namespaces. |
@rhatdan you mean to existing pod? What is the command to combine namespaces? |
Well all a pod is, is a bunch of containers sharing namespaces (and cgroups) If I have an existing container and do podman run --pid container:containerA --net container:containerA --ipc container:containerA ... Then the two containers will basically work as a pod. |
Actually explicitly restricted - you can only share namespaces with a container in a pod if you are part of the pod. Removal ordering issues - need to be able to remove a pod without leaving straggler containers that want to use its resources. |
How does it work in the following user story.
Is that right? |
Yes, you can not add an existing container to a pod, because of the conflicts in namespaces, and cgroups. |
Is it possible to detect those conflicts and resolve them one by one manually? |
We've discussed a 'podman clone' command - copy an existing container and
make changes (like moving to a pod). That would be the easiest way forward
for this that I can see.
…On Fri, Sep 13, 2019, 08:58 Anatoli Babenia ***@***.***> wrote:
Is it possible to detect those conflicts and resolve them one by one
manually?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3979>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3AOCG2EC7CKQANEPNKLILQJOFA7ANCNFSM4IVG5YIA>
.
|
@mheon is it possible to make changes to container checkpoints that are used for live migrations https://criu.org/Podman ? |
Not at present - but we'd probably use a similar mechanism for |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Added the "do-not-close" label as I'm sure this is something worth adding. |
If I make a checkpoint.
Why it is not possible to restore it inside a pod? |
CRIU cannot handle this currently. If CRIU restores a process running in namespaces, CRIU currently also restores all namespaces. For Podman we introduced the possibility in CRIU to restore a container into an existing network namespace, because Podman uses CNI to create network namespaces and CRIU can now restore a container into an existing network namespace. To restore a process into an existing network namespace is the big difference between Podman's checkpoint/restore support and other container engines. With this as background it should be possible to extend CRIU to restore a process (container) into an existing set of namespaces (a pod). But this requires work on the CRIU level, runc and Podman level. It is doable, but not something which is being worked on (at least from what I know from the CRIU point of view). |
Is anyone working on this? Planning to work on this? |
It should be part of |
@mheon Reminder. |
I have cards for |
Not sure what |
@mheon Should we merge a bunch of these issues together that requires |
@rhatdan Agree, that sounds like a good idea |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
The idea of a |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
opened a PR: #13587 |
Closes: containers#3979 Signed-off-by: Giuseppe Scrivano <[email protected]>
/kind feature
Is it possible to move container into a pod? I want to expose container ports without killing it (#3949) and I thought that maybe moving it to a pod can accomplish this.
Output of
podman version
:The text was updated successfully, but these errors were encountered: