Dan Walsh
f5d6269371
Allow docker to free container labels when containers are removed.
...
Currently we do not remove reservations on MCS labels when a container
is removed. Not a big problem, since on reboot it would be freed.
But we should be cleaning this up. Currently we support ~500,000
labels.
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
2014-08-20 17:07:38 -04:00
Michael Crosby
db65c35051
Merge pull request #161 from crosbymichael/return-notfound-err
...
Return NotFound error for cgroups abs paths
2014-08-20 14:39:56 -05:00
Michael Crosby
a117d3a1c0
Ignore not found erros in Paths
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-20 10:39:48 -07:00
Michael Crosby
3cdf12b041
Change not found error to be typed with cgroup subsystem
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-20 10:32:01 -07:00
Michael Crosby
4aa9963faf
Return NotFound error for cgroups abs paths
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-20 10:14:56 -07:00
Michael Crosby
edfe81a08b
Merge pull request #159 from LK4D4/remove_docker_systemd_dep
...
Remove dependency from docker/pkg/systemd
2014-08-19 12:55:19 -05:00
Alexandr Morozov
388d143d19
Remove dependency from docker/pkg/systemd
...
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
2014-08-19 20:16:39 +04:00
Victor Marmol
29363e2d2d
Merge pull request #143 from vishh/enter_cgroup
...
Enter cgroups as part of NsEnter
2014-08-14 14:04:19 -04:00
Vish Kannan
86ba98bbfd
Merge pull request #4 from crosbymichael/cgroup-enter
...
Cleanup systemd cgroup code
2014-08-13 23:26:18 -07:00
Michael Crosby
781855b62a
Cleanup systemd cgroup code
...
The current paths for the different systemd cgroup subsystems that
systemd manages and that we have to manage are very inconsistent. This
patch cleans up those differences and allows consistent paths to be
used.
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-13 18:16:51 -07:00
Vishnu Kannan
97de9a45f9
Update cgroups paths in state to be a map with cgroup type as key and path as value.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-13 23:26:27 +00:00
Vishnu Kannan
ad16526d7f
Store all the cgroups paths as part of the state. This simplifies entering cgroups and will be useful for
...
cleanups too in the future.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-13 23:26:27 +00:00
Vishnu Kannan
ae08910fde
Enter cgroups as part of nsenter while using systemd.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-13 23:26:27 +00:00
Vishnu Kannan
ae64fd1e58
Enter cgroups while entering namespaces as part of NsEnter.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-13 23:26:27 +00:00
Victor Marmol
6940d0ea85
Merge pull request #156 from LK4D4/fix_vet_errors
...
Fix warnings from go vet
2014-08-13 11:49:46 -04:00
Alexandr Morozov
665613ccd4
Fix warnings from go vet
...
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
2014-08-13 14:38:20 +04:00
Michael Crosby
1befa2fe9e
Merge pull request #155 from crosbymichael/execin-func
...
Implement execin by using registered functions
2014-08-12 18:09:29 -07:00
Michael Crosby
bdafa085ae
Reuse exec cli function and strip nsenter- from funcs
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 17:33:20 -07:00
Michael Crosby
33129cabee
Merge pull request #147 from lynxbat/145-PercentUsage
...
Fixes logic for calculating percentage
2014-08-12 13:16:50 -07:00
Michael Crosby
7d1ba0698f
Cleanup and rename loadContainer to loadConfig
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 12:03:53 -07:00
Michael Crosby
52ba97e3b1
Add ip func example for listing namespace interfaces
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 11:52:33 -07:00
Nicholas Weaver
8478f0d76d
Removed an extra float64()
...
Docker-DCO-1.1-Signed-off-by: Nicholas Weaver <lynxbat@gmail.com> (github: lynxbat)
2014-08-12 11:45:34 -07:00
Michael Crosby
70367b2cf3
Improve execin to support registering funcs
...
This also changes the functionality of the default exec in to just be an
existing func that is called than handles the implementation to exec a
user user's process inside the container. This implements this
functionallity in nsinit but is a base for how we will be handling these
types of features inside docker.
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 11:43:12 -07:00
Michael Crosby
51e6049226
Make nsinit package main only
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 10:48:12 -07:00
Michael Crosby
9378c05c37
Remove nsinit main calling pkg
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-12 10:45:41 -07:00
Michael Crosby
d9e307741f
Merge pull request #152 from crosbymichael/addsetns-by-fd
...
Expose setting interface by fd in network pkg
2014-08-12 10:41:21 -07:00
Michael Crosby
47998d3663
Merge pull request #149 from milosgajdos83/modify-PR118
...
Modification of erikh/netlink-remove-address PR
2014-08-12 10:38:28 -07:00
Michael Crosby
64771adcf0
Merge pull request #153 from LK4D4/travis_badge
...
Add travis status badge
2014-08-12 10:32:36 -07:00
Alexandr Morozov
680c1f5205
Add travis status badge
...
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
2014-08-12 09:09:25 +04:00
Milos Gajdos
fe8937c745
Fixing a copy-cat from original PR.
...
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-12 03:12:26 +01:00
Michael Crosby
f0278ac587
Expose setting interface by fd in network pkg
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-11 18:56:58 -07:00
Michael Crosby
c86d089950
Merge pull request #151 from mrunalp/add_maintainer
...
Add myself as maintainer.
2014-08-08 16:38:15 -07:00
Mrunal Patel
a0866273b7
Add myself as maintainer.
...
Docker-DCO-1.1-Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp)
2014-08-08 19:32:34 -04:00
Michael Crosby
f2e78425c3
Merge pull request #146 from crosbymichael/refactor-execin
...
Refactor execin send config over pipe
2014-08-08 16:06:41 -07:00
Michael Crosby
fc05554fdb
Allow comparison based on strlen of "nsenter"
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 15:44:18 -07:00
Michael Crosby
4d1d6185ab
Add unsupported file for cross compile
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 12:14:48 -07:00
Nicholas Weaver
b2a1bff2d4
Merge branch 'master' of https://github.com/docker/libcontainer into 145-PercentUsage
2014-08-08 11:18:12 -07:00
Michael Crosby
3abf1dd99e
Modify nsinit to register actions for argv 0
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 11:16:56 -07:00
Michael Crosby
cdff060b63
Nsenter checks for argv 0 before running
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 11:11:23 -07:00
Michael Crosby
c8aa9323f1
Import nsenter code so that it is compiled into nsinit
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 10:43:18 -07:00
Michael Crosby
86f6df8993
Move nsenter code into separate package
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-08 10:42:19 -07:00
Milos Gajdos
b9ad475f6a
Fixed typo ipAssingned -> ipAssigned
...
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-08 12:24:18 +01:00
Milos Gajdos
0060267a8b
Tabbed the test build spec in Makefile
...
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-08 03:07:30 +01:00
Milos Gajdos
f9ae794564
Added NetworkLinkDelIp() into netlink_unsupported.go
...
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-08 03:04:36 +01:00
Milos Gajdos
356d006895
This is a modification of erikh/netlink-remove-address PR
...
This is a modification of original PR by @erikh (R118)
to keep the netlink codebase more consistent and my OCD
under control :-)
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-08 02:55:02 +01:00
Nicholas Weaver
8597998244
Fixes logic for calculating percentage for cgroups.Stats.CpuStats.CpuUsage.PercentUsage
...
Previous logic divided a uint64 by a uint64 losing precision before multiplying by clock ticks and cpus
This fix maintains precision before converting back to uint64
Docker-DCO-1.1-Signed-off-by: Nicholas Weaver <lynxbat@gmail.com> (github: lynxbat)
2014-08-07 16:22:35 -07:00
Michael Crosby
ae9af437f0
After parsing flags check that the command is nsenter
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-07 10:48:29 -07:00
Michael Crosby
5226b39d15
Fix issues in nsenter.c and console handling
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-06 22:04:28 -07:00
Michael Crosby
a48b001013
Refactor execin code to be simpler
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-06 18:44:41 -07:00
Michael Crosby
390f413a92
Make syncpipe transport generic data
...
Signed-off-by: Michael Crosby <michael@docker.com>
2014-08-06 18:00:52 -07:00