Commit Graph

16 Commits

Author SHA1 Message Date
Zhenfang Wei 11c323fbd3 Fixed the docker netns detection err on xenial (#15)
With ubuntu 16.04 and docker-engine 1.11, the docker netns detection
function failed to look for the correct location of task file. This
change fixed the issue.

Signed-off-by: Zhenfang Wei <kopkop@gmail.com>
2016-04-29 22:37:00 -07:00
Michel Normand b49e32fb51 netns add ppc64 same as ppc64le 2016-03-04 06:47:31 +01:00
Vish Ishaya f0b8d0aad3 Merge pull request #11 from krhubert/master
refactor netns
2016-01-13 11:21:53 -08:00
Hubert dff3fd240d docs: fix typo 2015-09-16 17:01:26 +02:00
Hubert f19e34ff16 dosc: fix golint errors 2015-09-16 16:52:32 +02:00
Hubert 3e1d42c9bc refactor: remove netns_linux_*.go files and use map instead 2015-09-16 16:47:11 +02:00
Hubert 3195ea9cc6 dosc: mark CLONE_ flags as deprecated 2015-09-16 16:44:12 +02:00
Nick Ethier 0591c3f637 Will always be under system.slice on systemd 2015-08-11 15:20:38 -06:00
Nick Ethier f345454358 Fix getPidForContainer for later releases of docker 2015-08-11 15:02:56 -06:00
Eugene Yakubovich be8852baf7 Add GetFromPath to construct NsHandle from any path
Also makes other Get functions utilize GetFromPath
to avoid duplication.
2015-06-07 13:25:43 -07:00
Dave Tucker 16c2d46118 Add Build Flags
This commit adds build flags for the various architectures to prevent
failures when cross compiling. It also fixes errors in
netns_unspecified.go by replacing the undefined type Namespace with
NsHandle

Signed-off-by: Dave Tucker <dt@docker.com>
2015-05-20 19:27:24 +01:00
Michael Marineau 008d17ae00 Fix handling of namespaces in multi-threaded processes.
GetFromPid gets the namespace of the main thread, so previously Get
returned the wrong value if run from any other thread. Add a new
GetFromThread which uses the Linux thread id and switch Get to it.
2015-01-26 16:46:24 -08:00
Vishvananda Ishaya e14a2d4e90 support docker 1.2 in GetFromDocker 2014-09-14 23:56:34 -07:00
Vishvananda Ishaya be82404eeb move nshandle into top level gofile 2014-09-13 17:43:21 -07:00
Vishvananda Ishaya 1e4e8a6a14 Add method for empty ns handle 2014-09-13 16:15:18 -07:00
Vishvananda Ishaya b801b0b909 Initial commit of netns package 2014-08-31 14:20:31 -07:00