Qiang Huang
96f0eefa1a
Fix comment to be consistent with the code
...
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-11-16 19:16:27 +08:00
Abin Shahab
28c9d0252c
Userns container in containers
...
Enables launching userns containers by catching EPERM errors for writing
to devices cgroups, and for mknod invocations.
Signed-off-by: Abin Shahab <ashahab@altiscale.com>
2015-11-15 14:42:35 -08:00
Jessica Frazelle
ecd6463101
static binary \o/
...
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-11-14 16:33:52 -08:00
Alexander Morozov
48fdc50d09
Merge pull request #398 from crosbymichael/seccomp-trace
...
Add seccomp trace support
2015-11-13 10:54:18 -08:00
Alexander Morozov
bda4ca2f8f
Merge pull request #388 from hqhq/hq_cgroup_cleanups
...
Some cgroup cleanups
2015-11-13 09:06:18 -08:00
Mike Brown
8b19581694
adding support for --bundle -b to start, restore, and spec; fixes issue #310
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2015-11-13 09:13:57 -06:00
Michael Crosby
caca840972
Add seccomp trace support
...
Closes #347
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-11-12 17:03:53 -08:00
Alexander Morozov
1df35060e4
Merge pull request #391 from mrunalp/exec_validate
...
Validate process configuration for runc exec
2015-11-12 16:35:44 -08:00
Michael Crosby
2be14dc963
Merge pull request #392 from mrunalp/poststart
...
Add poststart hooks
2015-11-12 16:34:38 -08:00
Mrunal Patel
4ee10a9c59
Merge pull request #394 from avagin/email
...
Change my email address
2015-11-10 09:11:55 -08:00
Andrey Vagin
ca0511f58c
Change my email address
...
Signed-off-by: Andrey Vagin <avagin@openvz.org>
2015-11-10 19:39:50 +03:00
Alexander Morozov
c4e528889a
Merge pull request #393 from crosbymichael/fix-opts-race
...
Fix race setting process opts
2015-11-09 10:26:13 -08:00
Michael Crosby
879dfdd980
Fix race setting process opts
...
When starting and quering for pids a container can start and exit before
this is set. So set the opts after the process is started and while
libcontainer still has the container's process blocking on the pipe.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-11-06 16:51:59 -08:00
Mrunal Patel
452e8a73c5
Integrate poststart hooks with spec
...
* Call poststart hooks after the container is started
* Tie in with spec configuration
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-11-06 18:03:32 -05:00
Mrunal Patel
bb2d3cd1be
Add Poststart hook to libcontainer config
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-11-06 18:02:50 -05:00
Mrunal Patel
9f739e0429
Validate process configuration for runc exec
...
We make sure that the args are present. All other items are optional and default to sensible values.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-11-06 14:08:50 -05:00
Qiang Huang
209c8d9979
Add some comments about cgroup
...
We fixed some bugs and introduced some code hard to be
understood, add some comments for them.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-11-05 19:12:53 +08:00
Qiang Huang
8c98ae27ac
Refactor cgroupData
...
The former cgroup entry is confusing, separate it to parent
and name.
Rename entry `c` to `config`.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-11-05 19:12:53 +08:00
Qiang Huang
a263afaf6c
Rename parent and data
...
'parent' function is confusing with parent cgroup, it's actually
parent path, so rename it to parentPath.
The name 'data' is too common to be identified, rename it to cgroupData
which is exactly what it is.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-11-05 19:12:53 +08:00
Mrunal Patel
83d7331acc
Merge pull request #360 from jhowardmsft/jjh/container_interface
...
Windows: Refactor Container interface
2015-11-02 15:16:41 -08:00
John Howard
a919bd3f67
Windows: Refactor Container interface
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-11-02 15:12:16 -08:00
Mrunal Patel
c42a2952c4
Merge pull request #361 from jhowardmsft/jjh/criu_opts
...
Windows: Factor down criu_opts
2015-11-02 15:05:27 -08:00
Mrunal Patel
7caef5626b
Merge pull request #359 from jhowardmsft/jjh/state_struct
...
Windows: Refactor state struct
2015-11-02 15:04:12 -08:00
Mrunal Patel
cf73b32eeb
Merge pull request #343 from hqhq/hq_unify_behavior_for_memory
...
Unify behavior for memory cgroup
2015-11-02 14:58:31 -08:00
Michael Crosby
cca151c947
Merge pull request #375 from hqhq/hq_fix_systemd_readme
...
README.md: fix description for runc with systemd
2015-11-02 14:56:40 -08:00
Michael Crosby
26eb6a1bcd
Merge pull request #377 from rhatdan/label
...
Docker needs to know whether the user requested a relabel
2015-11-02 14:55:27 -08:00
Mrunal Patel
f0cd955927
Merge pull request #379 from duglin/cleanErrorCases
...
Add more context around some error cases
2015-10-31 09:59:24 -07:00
Doug Davis
e5dc12a0c9
Add more context around some error cases
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-10-30 10:55:48 -07:00
Dan Walsh
69c3ea4e17
Docker needs to know whether the user requested a relabel
...
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2015-10-28 15:44:38 -04:00
Qiang Huang
826c92faed
README.md: fix description for runc with systemd
...
Fix the command and elaborate the instruction.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-10-28 04:21:39 -04:00
Qiang Huang
d72c391402
README.md: clarify OCI JSON files
...
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-10-27 15:34:38 +08:00
John Howard
fe1cce69b3
Windows: Refactor state struct
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-10-26 14:45:20 -07:00
Alexander Morozov
db21ac7750
Merge pull request #355 from keloyang/nake
...
Remove naked return
2015-10-25 19:50:41 -07:00
Mrunal Patel
6c36d666a1
Merge pull request #365 from jhowardmsft/jjh/devices
...
Windows: Tidy libcontainer\devices
2015-10-24 19:36:26 -07:00
Mrunal Patel
0d155ba0fb
Merge pull request #362 from jhowardmsft/jjh/configs-cgroup
...
Windows: Refactor configs/cgroup.go
2015-10-24 19:34:54 -07:00
Mrunal Patel
6d85c27599
Merge pull request #364 from jhowardmsft/jjh/fs-build-tags
...
Fixes build tags on cgroups\fs\*.go
2015-10-24 19:33:52 -07:00
John Howard
37675129ba
Windows: Tidy libcontainer\devices
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-10-23 13:50:24 -07:00
Alexander Morozov
34fe03fa8a
Merge pull request #238 from adrianreber/master
...
Add criu related debug output
2015-10-23 13:44:03 -07:00
John Howard
fb5a8febce
Fixes build tags on cgroups\fs\*.go
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-10-23 13:41:10 -07:00
Mrunal Patel
b741e3dc9d
Merge pull request #337 from alban/alban/stdio
...
libcontainer/SPEC.md: fix /dev/stdio symlinks
2015-10-23 13:40:56 -07:00
John Howard
8690e9cc8c
Windows: Refactor configs/cgroup.go
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-10-23 13:08:18 -07:00
John Howard
78351a8e3d
Windows: Factor down criu_opts
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-10-23 12:58:59 -07:00
Mrunal Patel
bed70ca579
Merge pull request #358 from rajasec/exit-typo
...
Fixing typo in the comment for exit
2015-10-23 11:12:17 -07:00
Alexander Morozov
989c4ba181
Merge pull request #354 from heavenlyhash/remove-unused-func
...
Remove fatalf function; unused.
2015-10-23 11:03:42 -07:00
Alexander Morozov
97929bd6dd
Merge pull request #335 from crosbymichael/cgroup-order
...
Add name to cgroup subsystem and set order
2015-10-23 10:38:29 -07:00
Michael Crosby
89c0345b01
Merge pull request #345 from keloyang/arch
...
Add the conversion of architectures for seccomp config
2015-10-23 10:25:41 -07:00
yangshukui
e5ef8d239a
Add the conversion of architectures for seccomp config
...
Signed-off-by: yangshukui <yangshukui@huawei.com>
2015-10-23 10:17:39 +08:00
rajasec
58e3cde8f3
Fixing typo in the comment for exit
...
Signed-off-by: rajasec <rajasec79@gmail.com>
2015-10-22 19:08:03 +05:30
yangshukui
4584a4e762
Remove naked return
...
Signed-off-by: yangshukui <yangshukui@huawei.com>
2015-10-22 14:31:15 +08:00
Eric Myhre
01d9b4002e
Remove fatalf function; unused.
...
Signed-off-by: Eric Myhre <hash@exultant.us>
2015-10-21 19:22:14 -05:00