Skip to content

Allow shared PID namespaces #10163

Closed
Closed

Description

@thockin

Now that #10080 is in, we're requesting something like --pid=container:id -- we already support --net and --ipc in this mode.

The use case is Kubernetes concept of pods - tightly coupled containers that work together. We believe that containers in a pod should be able to signal each other, for example.

Activity

  1. jessfraz commented on Jan 18, 2015

    @jessfraz
    Contributor

    I also think it would be cool to share say a strace container with just
    another container and not the whole host :) +1

    On Saturday, January 17, 2015, Tim Hockin <[email protected]
    javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

    Now that #10080 #10080 is in,
    we're requesting something like --pid=container:id -- we already support
    --net and --ipc in this mode.

    The use case is Kubernetes concept of pods - tightly coupled containers
    that work together. We believe that containers in a pod should be able to
    signal each other, for example.

    —
    Reply to this email directly or view it on GitHub
    #10163.

  2. added
    kind/feature
    on Feb 27, 2015
  3. luebken commented on May 22, 2015

    @luebken

    Any news on this?

  4. hqhq commented on May 22, 2015

    @hqhq
    Contributor

    #dibs

  5. added a commit that references this issue on May 25, 2015
    2631af9
  6. rysiekpl commented on Jun 18, 2015

    @rysiekpl

    This is relevant to my interests. Any movement on this?

  7. hqhq commented on Jun 18, 2015

    @hqhq
    Contributor

    @rysiekpl As you can see, we have a related PR #13453 , it's closed temporary, I'll ask for reopen when libcontainer support is merged.

  8. syeduguri commented on Jun 19, 2015

    @syeduguri

    +1

  9. gtmtech commented on Jul 23, 2015

    @gtmtech

    +1 This would be so useful for monitoring tools attaching to other containers. Otherwise you have to install them inside which violates all kinds of 12factorness

  10. cpuguy83 commented on Jul 23, 2015

    @cpuguy83
    Member

    @gtmtech You can already share the host's pid namespace, which contains all the container PIDs.

  11. thockin commented on Jul 23, 2015

    @thockin
    ContributorAuthor

    @cpuguy83 That's the opposite of what we want - I want helpers to be able to signal apps, not for apps to be able to see the true nature of the universe.

  12. cpuguy83 commented on Jul 23, 2015

    @cpuguy83
    Member

    @thockin I was specifically referring to @gtmtech's issue of monitoring stuff in the container without having to inject new stuff into that container.

  13. gtmtech commented on Jul 23, 2015

    @gtmtech

    Thanks @cpuguy83 , I was aware of that option.. I'm not sure I want to sacrifice process isolation in order to be able to monitor things, as it brings in all sorts of security considerations, so I'd still like to see container namespacing available, but thanks for the suggestion

  14. 6 remaining items

  15. paralin commented on Oct 21, 2015

    @paralin

    +1 towards allowing --pid=host, particularly for things like system monitoring daemons via DaemonSets.

  16. cpuguy83 commented on Oct 21, 2015

    @cpuguy83
    Member

    pid=host is allowed

  17. rysiekpl commented on Oct 21, 2015

    @rysiekpl

    @paralin are you talking about literal "--pid=host" (which works and gives you the docker host system PID namespace), or "--pid=<some-host-name>" (which does not work, and seems to be a feature that would be really useful)?

  18. paralin commented on Oct 21, 2015

    @paralin

    @rysikpl I mean pid=host. Is there an option for that already?

  19. cpuguy83 commented on Oct 21, 2015

    @cpuguy83
    Member
  20. paralin commented on Oct 21, 2015

    @paralin

    @antoineco If it was in a Stack Overflow answer I wouldn't ask in an GitHub issue...

    The solution is to set hostPID=true in the spec. This is actually documented but for some reason I couldn't find it.

  21. antoineco commented on Oct 21, 2015

    @antoineco

    Are you talking about Docker or Kubernetes?

  22. paralin commented on Oct 21, 2015

    @paralin

    Kubernetes. I was asking how to configure a pod to be started with --pid=host. The solution is to set hostPID = true in the spec.

  23. antoineco commented on Oct 21, 2015

    @antoineco

    I didn't mean to patronize you, I was just referencing a very good answer, sorry for the misunderstanding. This is the docker GitHub repo, hence your question was not clear enough to let me guess you were asking something about Kubernetes.

  24. paralin commented on Oct 21, 2015

    @paralin

    @antoineco Thanks, I appreciate it. My bad. I'm switching between a lot of issues right now and didn't notice I had hopped to the Docker repo :) Thanks again!

  25. thaJeztah commented on May 31, 2016

    @thaJeztah
    Member

    This has been implemented in #22481, and will be in docker 1.12, so closing this

  26. added this to the 1.12.0 milestone on May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions