Commit Graph
94 Commits
Author SHA1 Message Date
Andrea Luzzardi f935cc47fb Merge pull request #16229 from icecrime/discovery
Add builtin nodes discovery
Upstream-commit: 9324b154d27643caed58c12e8c49630eeceb4fda
Component: engine
2015-09-27 18:06:27 -07:00
Andrea Luzzardi 9135f9f621 Merge pull request #10745 from jfrazelle/device-dir
Mounting a dir of devices like /dev/snd should mount all child devices
Upstream-commit: b9be50b578f86e858113b9c334e1748e15b63263
Component: engine
2015-04-01 16:53:01 -07:00
Andrea Luzzardi e6c9b85c85 Expose # of CPUs and memory available on docker info.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 61f8001c23dc4fbd7b1113f20b89a0dbade9aa82
Component: engine
2014-10-24 15:56:37 -07:00
Andrea Luzzardi 82b5bee9bb Bump API to v1.16.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: ca6cc6560987a87b8f3b4fe4c3c227d692c49117
Component: engine
2014-10-24 11:25:44 -07:00
Andrea Luzzardi 2d4979cc75 Merge pull request #8453 from estesp/8444-create-bridge-error
Gracefully handle network bridge without IP association at startup
Upstream-commit: a76c924e6a23329569136bb8569168319f738656
Component: engine
2014-10-23 17:00:21 -07:00
Andrea Luzzardi b7e17d56af Add MemInfo to the system pkg.
MemInfo provides a simple API to get memory information from the
system.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: e0c9d7b654221a0d4e5a310b0f9a0adb9ef69aa0
Component: engine
2014-10-22 14:05:45 -07:00
Andrea Luzzardi 161436147c Disable stable IPs.
Stable IPs causes some regressions in the way people use Docker, see GH#8493.

Reverting it for 1.3, we'll enable it back for the next release.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 5b8379a4349105eb387a4b9836bbd1d83ebe6928
Component: engine
2014-10-09 15:15:17 -07:00
Andrea Luzzardi 87b92d77be Merge pull request #8475 from cpuguy83/fix_create_phantom_volumes_on_container_restart
Fixes re-creating volume on (re)start
Upstream-commit: d7bcc099bec2b0ee4ff5c6411ae33f9e23bd94d1
Component: engine
2014-10-08 13:58:56 -07:00
Andrea Luzzardi 4288572028 Merge pull request #8472 from cpuguy83/fix_volume_refs_on_daemon_restore
Restore volume refs after daemon restart
Upstream-commit: c417921f7863ce5705d421773aa0535966279073
Component: engine
2014-10-08 13:58:30 -07:00
Andrea Luzzardi dbcd84a852 Container#AllocateNetwork: Simplify error handling.
The defer logic was a little tricky and was hiding one bug: `err` was
being redefined (with `:=`) and thus it escaped the defer error checking
logic.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 300c51c3a4ca47b022eb2efb75d1e8cf7736b0ff
Component: engine
2014-10-06 17:59:12 -07:00
Andrea Luzzardi 505d3e474a Merge pull request #8392 from jfrazelle/pr_8389
Invalid mount mode for volumes in
Upstream-commit: 84d9fd37b05c22a61af2ab86c6783089b456790b
Component: engine
2014-10-03 17:22:21 -07:00
Andrea Luzzardi bad1803f92 Stable MAC addresses: Add support for MAC address restoring.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: b669025949f1dba1ad3af9bab6711736863d6e24
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi e8d74130ef Daemon: Restore network settings at startup.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: f1087c5fcf070f151601f643418f3963facfea84
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi 5b30bf9410 Stable Networking: Keep the same network settings across container restarts.
This change will allocate network settings (IP and public ports) at
container creation rather than start and keep them throughout the
lifetime of the container (i.e. until it gets destroyed) instead of
discarding them when the container is stopped.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: a4875937293f3b0a8ffc569608bbca40a456e9c8
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi 2fa4089519 Container: Add restore network functionality.
RestoreNetwork() allows the container to restore its NetworkSettings (IP
and public ports).

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: deffc572ced3909c0ecd77dd21686e0e67c0ea33
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi 6b98f72598 Container: Make allocateNetwork and releaseNetwork public.
Since we are moving network allocation outside of container scope (it
will be managed by create/destroy), those functions need to be
accessible from the outside.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: ab4188c08d9eb63c84c461a9b922f2af479b5a04
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi 89c89a77ed Network Allocation: Proper rollback in case of failure allocation.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 103a4e0676f0099759e6f9a29ea1c9dc32766806
Component: engine
2014-10-03 13:46:24 -07:00
Andrea Luzzardi 4418404026 Support for consistent MAC address.
Right now, MAC addresses are randomly generated by the kernel when
creating the veth interfaces.

This causes different issues related to ARP, such as #4581, #5737 and #8269.

This change adds support for consistent MAC addresses, guaranteeing that
an IP address will always end up with the same MAC address, no matter
what.

Since IP addresses are already guaranteed to be unique by the
IPAllocator, MAC addresses will inherit this property as well for free.

Consistent mac addresses is also a requirement for stable networking (#8297)
since re-using the same IP address on a different MAC address triggers the ARP
issue.

Finally, this change makes the MAC address accessible through docker
inspect, which fixes #4033.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 88e21c6a75310da158bbee3a5fdc135697c93ba1
Component: engine
2014-10-03 13:22:38 -07:00
Andrea Luzzardi dbbb1fe8c4 Merge pull request #8266 from cpuguy83/fix_race_in_createing_volumes
Fix potential race in volume creation
Upstream-commit: 3f2e4e94d7dffe40a9cc1139cc2e6e5dcd1459f3
Component: engine
2014-09-30 18:03:00 -07:00
Andrea Luzzardi 1df0784591 Merge pull request #8299 from vieux/pr_7425
Add --security-opts options to allow user to customize container labels and apparmor profile
Upstream-commit: d40ab6f1238c78ea84645e516f1f24d7991798b0
Component: engine
2014-09-30 17:53:11 -07:00
Andrea Luzzardi 8b12ac14d7 API: Provide the HostConfig during "run".
Currently, the HostConfig is only passed from the CLI to Docker only
when issuing a docker create, but not when doing a docker run.

In the near future, in order to allocate ports at creation time rather
than start time, we will need to have the HostConfig readily available
at container creation.

This PR makes the client always pass the HostConfig when creating a
container (regardless of whether it's for a run or create).

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 1df87b95066198c30312147393c18e0be0564fd0
Component: engine
2014-09-25 15:24:38 -07:00
Andrea Luzzardi eef9fcd7bb Merge pull request #8200 from aluzzardi/f-ipallocator-check-range
IPAllocator: Ensure the allocated IPs are within network range.
Upstream-commit: 4479d69d562e707ed9b349290ba137904aa7123f
Component: engine
2014-09-24 14:29:39 -07:00
Andrea Luzzardi 500b118084 IPAllocator: Ensure the allocated IPs are within network range.
Since it is possible to request a specific IP, IPAllocator has to verify
that the request is within boundaries.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: a471eb4d9388dc44be0a9c81fa2f15061df636c5
Component: engine
2014-09-24 11:04:28 -07:00
Andrea Luzzardi 05552c0632 Drone Config: Disable integration-cli/docker_cli_exec_test as it breaks.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 07cedaab8640a68c480cb90722cb08fcf0a2c043
Component: engine
2014-09-19 15:40:48 -07:00
Andrea Luzzardi f94b4ccad2 Drone Config: Use AUTO_GOPATH instead of hacking around.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 72fe4c8daa86158fef97dceb1bae6395c2b4e05e
Component: engine
2014-09-19 15:20:35 -07:00
Andrea Luzzardi f32be6203d Add drone.io configuration
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: ed072ed71dfbd3539d769fc2aa882f6029b7bc64
Component: engine
2014-09-19 11:00:28 -07:00
Andrea Luzzardi ba5971c0a7 Re-enabled lxc capabilities drop
Upstream-commit: 2192d3371ceb7431a6dacd170ddadd4ef26d5783
Component: engine
2013-02-28 11:57:57 -08:00
Andrea Luzzardi 7bb4e569d5 Merge branch 'master' into networking
Upstream-commit: f62344b75053fbfaf66246c2cb3e20577e317ce4
Component: engine
2013-02-28 11:52:52 -08:00
Andrea Luzzardi db9b80be91 Server: -p option to export TCP ports
Upstream-commit: f857fa0dddbf48b959b0876582027ebc46dc5e9e
Component: engine
2013-02-28 11:52:22 -08:00
Andrea Luzzardi 524643db0f Docker: Network manager integration
Upstream-commit: bd2f51290f4c34daec08474c0bd78952030be6ff
Component: engine
2013-02-28 11:52:07 -08:00
Andrea Luzzardi 65fd63e26d Container can now take a list of ports to expose in its config
Upstream-commit: 09eacdfadec36f79cec74f037484b10ddfae6791
Component: engine
2013-02-28 11:51:14 -08:00
Andrea Luzzardi 3cddff121d Network: Port mapping support.
Implemented a port allocator and a port mapper that is able to forward TCP ports
from the host to the container.
Upstream-commit: 799ffa176399877e610ff2049dbf84610037a2be
Component: engine
2013-02-28 11:50:02 -08:00
Andrea Luzzardi a736616ad1 Merge from master
Upstream-commit: c7f4602b184ec2cab594dfeaf73bed09aa39a749
Component: engine
2013-02-26 17:32:07 -08:00
Andrea Luzzardi 4ea244cb65 Merge branch 'master' into networking
Upstream-commit: 3c0a59f03873e5c062ef0d39267341dd5f5e6bca
Component: engine
2013-02-26 11:04:28 -08:00
Andrea Luzzardi c483fcc71c Merge branch 'master' into networking
Upstream-commit: 2c2db5cd45f3281954211dc72a4412f5b611ad24
Component: engine
2013-02-26 11:03:11 -08:00
Andrea Luzzardi 6bc8a20d54 Integrated the network allocator into Docker. A networking environment
is assigned to each container upon Start and released whenever the
container exits.
Upstream-commit: c08f5b2b8460f13f2094bae2a496bf308f7645bb
Component: engine
2013-02-25 14:06:22 -08:00
Andrea Luzzardi 550e796b18 Network allocator
Upstream-commit: 797bb6e75b8f33fe44932bf90145cf069f342e44
Component: engine
2013-02-25 10:45:23 -08:00
Andrea Luzzardi 5d44a89654 Network tests
Upstream-commit: 149badc22b45acb171c3e583f6e820a06e4ced87
Component: engine
2013-02-21 18:34:35 -08:00
Andrea Luzzardi 98683195b2 Network: Do not assume that we are using a class C. Instead, compute the
IP addresses range and network size in order to allocate an IP address.
Upstream-commit: e0e49b9a2259d779b31055339e67b054c8dffc3b
Component: engine
2013-02-21 18:33:23 -08:00
Andrea Luzzardi a99e747427 Network: Simple random IP allocation on the bridge network.
Upstream-commit: 6124c5eb31ab8f9db4db288002388554d6181c86
Component: engine
2013-02-21 10:47:57 -08:00
Andrea Luzzardi 8326daf37d Network: Automatically figure out the gateway and netmask by inspecting
the lxc bridge interface
Upstream-commit: 5039d4a2804561885e32f2a93cb2a51cbaa8e847
Component: engine
2013-02-21 10:47:57 -08:00
Andrea Luzzardi d2dc806098 Basic networking support with hardcoded addresses. Work in progress.
Upstream-commit: 5cecd548cd48cec8967f7ad0b0b42b30fa3ec7a0
Component: engine
2013-02-21 10:47:57 -08:00
Andrea Luzzardi c17cf0dd79 sysinit: Support for the -g (gateway) flag used in networking setup
Upstream-commit: b9b66d0e1b70cd0475d6fbba33eba5632f852dde
Component: engine
2013-02-21 10:47:57 -08:00
Andrea Luzzardi bf8488f9ea vagrant: Changed the test image path
Upstream-commit: c696eb8d125528207522d1bbd06082aae9a8d494
Component: engine
2013-02-15 12:19:50 -08:00
Andrea Luzzardi 81fe2865f4 When the unit testing is not there, issue an error and offer a solution instead of automagically downloading the image
Upstream-commit: 994ec4c8c399538102d47850fc50c7a481d49595
Component: engine
2013-02-15 12:18:36 -08:00
Andrea Luzzardi c795ddcc76 run as user tests: Check the exit codes
Upstream-commit: ac36c986e008e8e4e4f56fe510ba7ab0dab0c778
Component: engine
2013-02-15 12:17:58 -08:00
Andrea Luzzardi e63a26936b Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 9155d1dd6d452755e07330a04fb3bc7c7af6671d
Component: engine
2013-02-15 10:55:55 -08:00
Andrea Luzzardi 486ef707bc Autonomous testing: Don't depend on /var/lib/docker/images/ubuntu being
there. Instead, automatically downlaod the test image if not present.
Upstream-commit: dd84ba348532b5c50a6c46573803952ac662bc67
Component: engine
2013-02-14 15:37:45 -08:00
Andrea Luzzardi 966f1c8314 Fixed a bug preventing proper reattachment to stdin upon container restart
Upstream-commit: 0da9ccc18e9c30347f394e4cc1231b4b6edca69e
Component: engine
2013-02-13 19:05:57 -08:00
Andrea Luzzardi bdbd84a25c Added a restart test to ensure a container can be successfully run twice
Upstream-commit: f2c2d953a871e847cc49b16573f4b1cdc483c4ab
Component: engine
2013-02-13 18:17:42 -08:00
Andrea Luzzardi e710d4bb19 Generate LXC config upon start rather than at container creation
Upstream-commit: 1793538a68c8fc2c7c85848d375f12f94c9012e5
Component: engine
2013-02-13 18:14:46 -08:00
Andrea Luzzardi d580173852 Server: Restored -u option (from merge)
Upstream-commit: e871eadab16563b4e64ef229c5aeb3cff5b37026
Component: engine
2013-02-13 17:41:50 -08:00
Andrea Luzzardi 01e4adc046 go fmt
Upstream-commit: 51c11868b0374d2551023ed38a2e929e2ae2717a
Component: engine
2013-02-13 17:40:57 -08:00
Andrea Luzzardi cc26343144 Restored dockerd from merge
Upstream-commit: 24ee1524815140b2299a1d98d4690d903a4abeb7
Component: engine
2013-02-13 17:40:10 -08:00
Andrea Luzzardi 379acaad60 go fmt
Upstream-commit: 2f84bab8797329955e42c3089388c540d8009f04
Component: engine
2013-02-13 17:28:13 -08:00
Andrea Luzzardi eacfe8775a merge
Upstream-commit: cb6014d6fdfc0770523ea05ee257f00c3758874a
Component: engine
2013-02-13 17:26:25 -08:00
Andrea Luzzardi aaedaa2b20 Implemented support to run as a different user (through the -u flag)
Upstream-commit: 6de3e8a22dfa736f88c0477392474d73f7bed3c5
Component: engine
2013-02-13 17:24:35 -08:00
Andrea Luzzardi 3f005f3a30 merge
Upstream-commit: ec21a2d364573fd65086e607d23178e7d6091a9b
Component: engine
2013-02-13 14:19:35 -08:00
Andrea Luzzardi 22a81ca759 Implemented a self-injecting process wrapper that runs inside the container
- Before starting the container, docker injects itself inside the container by mount binding the dockerd binary into /sbin/init
- Instead of running the user process directly inside the container, we run /sbin/init targetprocess [args...]
- When docker is run as /sbin/init (e.g. argv[0] == "/sbin/init"), then its own sys init code kicks in
- The sys init code will be responsible for setting up the process environment prior to its execution (setuid, networking, ...).
- Finally, docker's sys init will exec() the container's process, thus replacing itself with the target binary (which will be running as pid 1)
Upstream-commit: 58a22942602f9035a1ed44c65ae2c501420600a3
Component: engine
2013-02-13 14:01:44 -08:00
Andrea Luzzardi bef500257a go fmt
Upstream-commit: 0d4600626919ec072289c003051f6323db3ffb5f
Component: engine
2013-02-13 14:00:36 -08:00
Andrea Luzzardi 6d5ac81c48 utils: Added SelfPath(), which figures out the current (absolute) path of the running binary
Upstream-commit: e6adfa2bc68db8f1f1ccd9facea6fa8f8bed4a33
Component: engine
2013-02-13 13:58:28 -08:00
Andrea Luzzardi f69baca3fc LXC template: Cleanup using text/template variables
Upstream-commit: 2416edd4002f9c142c19126b93f89e45aabf8d63
Component: engine
2013-02-13 13:56:19 -08:00
Andrea Luzzardi aa7ddfed10 Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 5a3fe231a24cb75f9faf6b42434fa7ffd35a3f4e
Component: engine
2013-01-29 15:51:30 -08:00
Andrea Luzzardi 2afd5c1951 Container: Improved pseudo-terminal support
Upstream-commit: caea45dd72835926a615ecb36a256172c19f2a36
Component: engine
2013-01-29 15:51:21 -08:00
Andrea Luzzardi 9b61c28d6f Created tests for stdin pipes and tty handling
Upstream-commit: ca40989e456cf81f26215059530b328d3be8c71c
Component: engine
2013-01-29 15:16:45 -08:00
Andrea Luzzardi 3297bbd8b6 go fmt
Upstream-commit: 94b1cf4be3606ff731b3ca012e5eddf021f4608f
Component: engine
2013-01-29 13:50:27 -08:00
Andrea Luzzardi f1c2218a8a Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 9906a9af8f2f66dfd630c219936e0a27b9754e56
Component: engine
2013-01-28 17:32:38 -08:00
Andrea Luzzardi 3e5ac730a8 Networking: Mount bind (ro) the host's /etc/resolv.conf into the
container in order to get networking.
Upstream-commit: 54a946e333077f59c8e6eb0663ab3e138a9e8320
Component: engine
2013-01-28 17:32:15 -08:00
Andrea Luzzardi a499fea2e5 go fmt
Upstream-commit: 333abbf85a8db9578e34c340032e32de3c8fefe8
Component: engine
2013-01-28 14:30:05 -08:00
Andrea Luzzardi 2c16835563 Fixed broken unit test after merge
Upstream-commit: d802a31be538d7c90d3f33474595dfdb77b7e50e
Component: engine
2013-01-28 12:11:30 -08:00
Andrea Luzzardi 6ec3df7414 merge conflicts
Upstream-commit: 2cb444248db185a7d332434d53605e289962af0c
Component: engine
2013-01-28 12:06:49 -08:00
Andrea Luzzardi 9c18c9de84 docker: Make sure to umount the container if it's still mounted at
destruction
Upstream-commit: fb40a7880494afffe384ac955f5f4e3a4971c676
Component: engine
2013-01-28 12:00:20 -08:00
Andrea Luzzardi c2dc6c5c0b Filesystem: Re-implemented Umount() and IsMounted() to work around AUFS
issues.

Umount() will now attempt to remove the mntpoint after umounting.
It will keep retrying for some time until the mntpoint is deleted.
Upstream-commit: 174f25909c525015cb84f1b82376091a1ac9c118
Component: engine
2013-01-28 11:58:47 -08:00
Andrea Luzzardi 9632a09e60 Added sequential and parallel benchmarks in order to stress test docker
(create, run, destroy workflow)
Upstream-commit: a2d7dd1a1908fc3dc6ac5648b5ea12eaecb19b1b
Component: engine
2013-01-28 11:51:51 -08:00
Andrea Luzzardi 7b5bb8d40c filesystem: Added IsMounted() unit tests
Upstream-commit: d8bc912238dfa75dff0902b9d97133e200807bea
Component: engine
2013-01-28 11:51:41 -08:00
Andrea Luzzardi 488ccc535c Fixed a bug preventing containers from running after being restored
Upstream-commit: 6513a1d94ed25a5f99b1e3d1670781f7597f9d35
Component: engine
2013-01-25 16:20:34 -08:00
Andrea Luzzardi d69e225ffb container: Fixed a bunch of race conditions by getting rid of lxc-wait.
Upstream-commit: f4e25694c15583ed6ed290aff0c29116f7ed361e
Component: engine
2013-01-25 15:36:47 -08:00
Andrea Luzzardi 05f939e0c7 Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 1df9819b257e2947c99c88973cc4cb7917b5ff62
Component: engine
2013-01-25 14:09:54 -08:00
Andrea Luzzardi 28021d1889 Docker: Fixed an issue with container unmarshaling which prevented
docker.restore() to work properly.
Upstream-commit: 2193b0c954e2fc9ce92fefa4e3b5a6c82ae98a3f
Component: engine
2013-01-25 14:09:21 -08:00
Andrea Luzzardi 8a21f0d542 Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 9b300272df3faed12033c5c55b75cc05c9bbb3f3
Component: engine
2013-01-25 11:06:07 -08:00
Andrea Luzzardi 64bc4b3350 Filesystem: Changes API
Upstream-commit: 09502e4faa76fddf6245db3c3281e9a70beda076
Component: engine
2013-01-25 11:05:11 -08:00
Andrea Luzzardi 3158de6ca9 Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 4fc390ee39b5cafdb90376edcb5f718534afdf5f
Component: engine
2013-01-24 18:11:08 -08:00
Andrea Luzzardi 1abf5fbe3a filesystem tests: Added a newTestFilesystem help function to remove
duplicate code
Upstream-commit: 06d8f7ce63d54d117a8245ccdbd84cfc90dfdd6b
Component: engine
2013-01-23 17:18:07 -08:00
Andrea Luzzardi 358dcc8f2a go fmt
Upstream-commit: 73d7265429261029b7e6345821e9efe4ec37b10a
Component: engine
2013-01-22 17:30:37 -08:00
Andrea Luzzardi f33d685f66 Fixed lxc-wait race condition. Added unit test to try running multiple
containers in parallel.
Upstream-commit: f958bdba8a7c1c62f2f6e3e7bc2ddf1599029ecf
Component: engine
2013-01-22 17:30:09 -08:00
Andrea Luzzardi 47356dc54b Restart() implementation
Upstream-commit: f0c08b57abb6e273b54b3f6d253acfe7b0107972
Component: engine
2013-01-22 15:03:40 -08:00
Andrea Luzzardi 37ddcb4a4a State: Keep track of the container start time
Upstream-commit: 64fc86fba760dd5cb34cd6d9f3ddf13dc3dc4280
Component: engine
2013-01-22 15:03:27 -08:00
Andrea Luzzardi d26b69de49 Filesystem: Perform syscalls directly instead of executing userland
tools. Added sanity checks. Improved unit tests.
Upstream-commit: e035f3e92b07c7ce601ec2a7a71150e76b1eccfd
Component: engine
2013-01-22 12:12:16 -08:00
Andrea Luzzardi 0eec792d3d Merge branch 'master' of github.com:dotcloud/docker
Upstream-commit: 005db1982d4e7548ef4fc4521f342b2e3f2701df
Component: engine
2013-01-22 11:13:38 -08:00
Andrea Luzzardi 12fb0ecd0d Container: Better serialization/reloading support
Upstream-commit: 8e9bb02ce530839dcd35db0c21ff219360485a34
Component: engine
2013-01-22 11:13:22 -08:00
Andrea Luzzardi d915837cc1 container.Name -> container.Id
Upstream-commit: 78c02daf474d798eea2da94286b30171d8deb98f
Component: engine
2013-01-21 18:39:52 -08:00
Andrea Luzzardi 7876504025 Removed bogus .swp file
Upstream-commit: 13cd4650fdc636862bee73e6de5374205f3e6dd1
Component: engine
2013-01-21 18:06:31 -08:00
Andrea Luzzardi 031dbdddeb Docker: Clean shutdown of containers.
Stop() will send a SIGTERM to the init process of the container and give it 10 seconds to shutdown properly.
After the timeout is reached, the process will be force killed (SIGKILL).
Also available is Kill() which kills the process on the spot.
Upstream-commit: 24dac22892cc3c8f34e90222f64b87d750b5025e
Component: engine
2013-01-21 18:03:23 -08:00
Andrea Luzzardi 5c70746915 Initial commit
Upstream-commit: a27b4b8cb8e838d03a99b6d2b30f76bdaf2f9e5d
Component: engine
2013-01-18 16:13:39 -08:00