swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Do we want to allow services to use the host's process namespace?

Open errordeveloper opened this issue 9 years ago • 11 comments

In the spirit of https://github.com/docker/swarmkit/issues/989, there is a need for allowing container to run in host's process namespace. Unlike docker run --pid=..., it may be not necessary to provide a way for running it a namespace of another container, but instead only host's namespace would be of particular interest.

My use case is about running a monitoring agent that has to see all processes on a host. Weave Scope is one example, but there are many other applications with similar requirements.

errordeveloper avatar Oct 10 '16 13:10 errordeveloper

+1

megastef avatar Dec 23 '16 22:12 megastef

+1

jimmycmh avatar Mar 15 '17 12:03 jimmycmh

I have the very same use case as @errordeveloper 👍 How did you end up working around it @errordeveloper ?

cirocosta avatar Jun 26 '17 17:06 cirocosta

+1 open to workarounds

jheidecker avatar Sep 20 '17 18:09 jheidecker

We have used a global service that bind-mounts docker socket and starts another container that way... A bit hack-y.

On Wed, 20 Sep 2017, 7:08 pm jheidecker [email protected] wrote:

+1 open to workarounds

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/swarmkit/issues/1605#issuecomment-330934267, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPWS4AUEoTnEVWHvwJQ0pOYWpycwGJJks5skVSrgaJpZM4KSk5l .

errordeveloper avatar Sep 21 '17 20:09 errordeveloper

Any news for --pid=host in swarm services? We would need it for monitoring agents deployed global service on each swarm node.

megastef avatar Nov 14 '17 21:11 megastef

Our developers need the PIDs to monitor processing usage within the container. So definitely needed for our deployments

carlwain74 avatar Jul 09 '19 00:07 carlwain74

I'd like to monitor a service too, using dotnet-counters. This would be a step to enabling sidecars in swarm which would be awesome.

dazinator avatar Jun 27 '23 23:06 dazinator

plus 1 here. Would like to use glances in docker swarm, but for it to see host processes, we need the pid: host option.

DeepSkyWonder avatar Apr 22 '24 09:04 DeepSkyWonder