You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
+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
@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.
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
@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)?
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.
@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!
Activity
jessfraz commentedon Jan 18, 2015
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:
luebken commentedon May 22, 2015
Any news on this?
hqhq commentedon May 22, 2015
#dibs
Allow PID namespace to be shared between container
rysiekpl commentedon Jun 18, 2015
This is relevant to my interests. Any movement on this?
hqhq commentedon Jun 18, 2015
@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.
syeduguri commentedon Jun 19, 2015
+1
gtmtech commentedon Jul 23, 2015
+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
cpuguy83 commentedon Jul 23, 2015
@gtmtech You can already share the host's pid namespace, which contains all the container PIDs.
thockin commentedon Jul 23, 2015
@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.
cpuguy83 commentedon Jul 23, 2015
@thockin I was specifically referring to @gtmtech's issue of monitoring stuff in the container without having to inject new stuff into that container.
gtmtech commentedon Jul 23, 2015
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
6 remaining items
paralin commentedon Oct 21, 2015
+1 towards allowing --pid=host, particularly for things like system monitoring daemons via DaemonSets.
cpuguy83 commentedon Oct 21, 2015
pid=host is allowed
rysiekpl commentedon Oct 21, 2015
@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)?paralin commentedon Oct 21, 2015
@rysikpl I mean pid=host. Is there an option for that already?
cpuguy83 commentedon Oct 21, 2015
@paralin yes
antoineco commentedon Oct 21, 2015
There is, StackOverflow to the rescue!
http://stackoverflow.com/questions/32857988/docker-namespace-in-kernel-level/32859298#32859298
paralin commentedon Oct 21, 2015
@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.
antoineco commentedon Oct 21, 2015
Are you talking about Docker or Kubernetes?
paralin commentedon Oct 21, 2015
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.
antoineco commentedon Oct 21, 2015
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.
paralin commentedon Oct 21, 2015
@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!
thaJeztah commentedon May 31, 2016
This has been implemented in #22481, and will be in docker 1.12, so closing this