Tianon Gravi
b718ecfd7d
Add linux/386 testing back to Travis
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-18 16:25:00 -06:00
Victor Marmol
cf45d141db
Merge pull request #111 from tianon/fix-cross
...
Fix 386 and arm cross-compile
2014-07-18 15:19:44 -07:00
Tianon Gravi
6fca833e4d
Fix 386 and arm cross-compile
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-18 16:08:54 -06:00
Victor Marmol
818628ad11
Merge pull request #110 from crosbymichael/sysro
...
Initially mount /sys as ro instead of remount
2014-07-18 14:26:33 -07:00
Michael Crosby
0dcae82acb
Initially mount /sys as ro instead of remount
...
The issue with doing a remount as ro with sysfs is that if a container
is still in one of the hosts namepsaces, commonly with the NET
namespace, the remount will cause the host's systems sysfs to be
remounted as ro also. We can fix this correctly by not doing the
remount and just mount sys as ro in the first place.
The other remounts are individual files within proc so they will not
have this issue.
For context please see:
https://github.com/dotcloud/docker/issues/7101
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-18 14:13:38 -07:00
Vishnu Kannan
c4f66a18ad
Reopening stdin, stdout and stderr if they are pointing to /dev/null to not have '/dev/null' from the global namespace opened inside the container.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-07-18 02:22:11 +00:00
Michael Crosby
2e422fc2a1
Merge pull request #104 from tianon/more-generics
...
Update a few build tags to be more generic, ...
2014-07-17 11:42:48 -07:00
Victor Marmol
302da30828
Merge pull request #102 from crosbymichael/add-exec
...
Add Start to container API
2014-07-17 11:24:51 -07:00
Michael Crosby
8f3a8cf2de
Add Exec to container API
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-17 11:06:07 -07:00
Tianon Gravi
1cdf742a82
Update a few build tags to be more generic, add a couple more SETNS constants, and update Travis with a bunch of fixes/tweaks (including removing the nonfunctional cross-compile stuff for now)
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-17 02:24:49 -06:00
Michael Crosby
3c03998775
Merge pull request #101 from crosbymichael/selinux-build-tags
...
Add linux build tags for selinux
2014-07-16 17:00:48 -07:00
Michael Crosby
a10820a78b
Add linux build tags for selinux
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-16 16:24:28 -07:00
Michael Crosby
be85764f10
Merge pull request #100 from crosbymichael/add-dockerfile
...
Add dockerfile
2014-07-16 15:02:02 -07:00
Michael Crosby
2374226175
Add dockerfile
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-16 14:58:01 -07:00
Victor Marmol
b30e0e150f
Merge pull request #99 from crosbymichael/improve-term-handling
...
Remove terminal handling in libcontainer
2014-07-16 14:53:12 -07:00
Michael Crosby
b56aa0658a
Don't open slave in parent
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 18:24:15 -07:00
Michael Crosby
18e12838d6
Add resize of term in tty mode
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 17:44:18 -07:00
Michael Crosby
43b4258c46
Open with NOCTTY and set raw term
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 17:29:09 -07:00
Michael Crosby
d661720fd7
Remove terminal handling in libcontainer
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 16:55:11 -07:00
Michael Crosby
fb3d909c28
Merge pull request #98 from thockin/netperf
...
Don't set the MTU for loopback interfaces.
2014-07-14 18:07:46 -07:00
Tim Hockin
d25aa3cee7
Don't set the MTU for loopback interfaces.
...
Setting the MTU for loopback has a huge performance impact on intra-container
traffic. The loopback interface is not an ethernet interface and does not need
the same limit. with this change I see a 4x speedup for loopback throughput.
Docker-DCO-1.1-Signed-off-by: Tim Hockin <thockin@google.com> (github: thockin)
2014-07-15 01:01:26 +00:00
Victor Marmol
f282224144
Merge pull request #97 from crosbymichael/system-pkg
...
Remove the dep on dotcloud/docker/pkg/system
2014-07-14 17:59:42 -07:00
Michael Crosby
8947d07576
Finish removing the dependency on docker/pkg/system
...
Fixes #92
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 17:00:05 -07:00
Michael Crosby
e9ec77ab34
Migrate selinux system xattr calls and prctl calls
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 16:55:49 -07:00
Michael Crosby
a2dc64cf30
Add initial system pkg to libcontainer
...
Port over console and ptmx code into console package
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 16:46:51 -07:00
Victor Marmol
65c37a84af
Merge pull request #90 from crosbymichael/cross-compile
...
Remove unsupported file
2014-07-14 14:36:57 -07:00
Michael Crosby
0ebcbde911
Remove unsupported file
...
This is no longer needed and is not properly built with the cross
compile scripts anyways.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 12:50:51 -07:00
Michael Crosby
fb67bb80b4
Merge pull request #89 from vmarmol/remove-freezer-stats
...
Remove FreezerStats.
2014-07-14 11:21:25 -07:00
Michael Crosby
af4d853c19
Merge pull request #88 from pmorie/master
...
Remove unused arg from namespaces.NsEnter
2014-07-14 10:39:35 -07:00
Victor Marmol
8de8fe9272
Remove FreezerStats.
...
They are really freezer state and we'll move them through another
interface.
Docker-DCO-1.1-Signed-off-by: Victor Marmol <vmarmol@google.com> (github: vmarmol)
2014-07-13 16:14:05 -07:00
Paul Morie
ea6e255f45
Remove unused arg from namespaces.NsEnter
...
Docker-DCO-1.1-Signed-off-by: Paul Morie <pmorie@gmail.com> (github: pmorie)
2014-07-13 17:48:27 -04:00
Victor Marmol
8c0303d928
Merge pull request #87 from crosbymichael/systemd-stats
...
Add cgroup status for systemd implementation
2014-07-11 12:13:21 -07:00
Michael Crosby
7e1cfc1f6a
Dont fail on missing subsystem for systemd stats
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 12:05:59 -07:00
Michael Crosby
50106c7490
Fix nsinit function to get stats from systemd
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 12:00:27 -07:00
Jimmi Dyson
cbd37fba86
Add systemd stats, reusing fs stats functionality
...
Docker-DCO-1.1-Signed-off-by: Jimmi Dyson <jimmidyson@gmail.com> (github: jimmidyson)
2014-07-11 11:43:08 -07:00
Victor Marmol
b3f798f9a7
Merge pull request #86 from crosbymichael/move-sync-pipe
...
Move syncpipe into separate package
2014-07-11 11:23:32 -07:00
Michael Crosby
48b2a41d76
Merge pull request #47 from rhatdan/master
...
Allow caller to change the SELinux labels on a directory tree.
2014-07-11 11:19:14 -07:00
Michael Crosby
422824c9d8
Move syncpipe into separate package
...
This moves the sync pipe into a separate package to help the changes
when moving the API around.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 11:06:00 -07:00
Dhammika Pathirana
a3a4da3822
Add code review updates
...
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Dhammika Pathirana
2d69029a83
Add netlink hooks to delete a bridge dev
...
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Victor Marmol
b325827144
Merge pull request #85 from vieux/remove_duplicate_caps
...
remove 2 duplicate caps
2014-07-10 21:29:09 -07:00
Victor Vieux
35e32b98cc
remove 2 duplicate caps
...
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
2014-07-11 00:31:35 +00:00
Michael Crosby
e79b114a3a
Merge pull request #84 from tianon/travis-all
...
Update Travis to test all the packages
2014-07-10 11:38:51 -07:00
Michael Crosby
1e643a7d2e
Merge pull request #79 from rjnagal/cgroup_testing
...
Add a standalone test utility for cgroup package.
2014-07-10 11:20:48 -07:00
Tianon Gravi
1c0ea4a3e4
Update Travis to test all the packages
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-10 11:38:56 -06:00
Victor Marmol
52e70ecc5e
Merge pull request #83 from cf-guardian/create
...
Use conventional factory terminology
2014-07-10 10:32:03 -07:00
Glyn Normington
b42d0cb1da
Use conventional factory terminology
...
The Initialize method is responsible for creating a new Container instance
and calling it Create makes the factory pattern more obvious. Clearly
creating a Container instance involves initialising the instance.
Docker-DCO-1.1-Signed-off-by: Glyn Normington <gnormington@gopivotal.com> (github: glyn)
2014-07-10 11:50:51 +01:00
Michael Crosby
ca2de1bc2c
Merge pull request #81 from crosbymichael/update-factory
...
Add Load method to factory
2014-07-09 17:30:29 -07:00
Michael Crosby
33855392d8
Replace ID with Path on the container
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-09 17:02:36 -07:00
Michael Crosby
5001b7e841
Add Load method to factory
...
Also update Initialize to take a path to the container
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-09 16:58:59 -07:00