f49bdcbf33
Add tests of tcp port allocator Upstream-commit: febaeebfb8848265267213b2f6a6fc3a40ad90f1 Component: engine
Solomon Hykes2013-04-05 13:03:24 -07:00
4e013b9e8e
Fix a race condition when running the port allocator Upstream-commit: d32f184696519f909d1db56a060b39f0a08b41c5 Component: engine
Solomon Hykes2013-04-05 13:03:04 -07:00
8d9a54f5f7
Bumping version to 0.1.3 Upstream-commit: a4fc52305abfcbc3976fa203898a1c3c8409a292 Component: engine
Solomon Hykes2013-04-04 23:05:03 -07:00
e9f0c90d6d
Choose which TCP frontend port to allocate with '-p :PORT' Upstream-commit: 2aad4a34785a1b0d02d910a14dbb9b0d6d3edc17 Component: engine
Solomon Hykes2013-04-04 22:58:01 -07:00
c15214a816
Refactored PortAllocator to allow for same-frontend constraint Upstream-commit: a5fb1d6c0105bb6d93c6b6890aa33bd99115973a Component: engine
Solomon Hykes2013-04-04 22:56:12 -07:00
5140fcb35f
Move the default bridge name to a constant Upstream-commit: 1b370f9d8dbd1c476db766e8587617e795570d97 Component: engine
Guillaume J. Charmes2013-04-04 05:33:28 -07:00
ad744d80e7
If bridge does not exists, try to create it Upstream-commit: aa4bf4284b4d18874544368349cb9575d8412de8 Component: engine
Guillaume J. Charmes2013-04-03 15:57:57 -07:00
04e71efb01
Make LXC aware of custom bridge Upstream-commit: d9a9bfc9c7bee2e4316debcd9f393b8f2fb1e45a Component: engine
Guillaume J. Charmes2013-04-03 15:05:03 -07:00
d25d9d9cff
Add an helper function to check if two network overlaps. Also add unit tests for this function Upstream-commit: 90a6e310fe4c70b99f9fa5c8d8615e2382edba0b Component: engine
Guillaume J. Charmes2013-04-03 14:53:54 -07:00
ae8058f403
Put the bridge interface name in the command line Upstream-commit: f39af7e05da437d6ac95b19ccfa401598d1fb5d9 Component: engine
Guillaume J. Charmes2013-04-03 14:53:09 -07:00
6b2f94ee3c
Print a less confusing error message when lxcbr0 doesn't exist Upstream-commit: 0424998f3885b715ad0fae074170a9be19c95680 Component: engine
Solomon Hykes2013-04-04 19:14:10 -07:00
4b2813872d
Add versioning to docker image format. IMPORTANT: the format versioning is pegged to docker's versioning, so changes to the format MUST trigger an increment in version number. Upstream-commit: 8bfbdd7afa504a1ddb09d026feb4d20eac4b4dd5 Component: engine
Solomon Hykes2013-04-04 18:38:43 -07:00
7286773837
Continue cleaning up iptables rules from previous version, to avoid crashing after an upgrade Upstream-commit: ebc837957fb45c4ba4768a2344ea7b551bbb86e5 Component: engine
Solomon Hykes2013-04-04 15:16:42 -07:00
d4dda83ea6
Simplified Graph.Delete() - no more garbage collecting, just atomic deregister then os.RemoveAll Upstream-commit: 5d3c0767dab1679686933a9b4cf4ddde19bc0faf Component: engine
Solomon Hykes2013-04-03 22:14:28 -07:00
a081015e8f
Bumped version to 0.1.2 Upstream-commit: dce5a06aba8e79e8e5fe5724676961319def6001 Component: engine
Solomon Hykes2013-04-03 15:35:32 -07:00
0e99b6b989
Fix NAT problem with ports looping back to containers Upstream-commit: 3b65be9127865fd894edea4d0b7de0ab92421018 Component: engine
unclejack2013-04-04 01:32:46 +03:00
bb5c0135f0
Check WaitTimeout return in test, replaced lock initialization in runtime.Register() with call to initLock() Upstream-commit: ad0183e41978b3b156234f801750034912915223 Component: engine
shin-2013-04-03 10:48:02 -07:00
4e81438347
change option description to reflect the semantics
Mikhail Sobolev2013-04-03 16:37:56 +03:00
8ee2fa2877
move each command description into a separate document Upstream-commit: cf8b8c1969daa423a1308561f3c1b2b863c64655 Component: engine
Mikhail Sobolev2013-04-02 04:52:44 +03:00
23a4c38130
Moved resetLock() to the Load() method ; changed resetLock() to initLock() and changed behavior to not modify the lock if it was already set (not nil) Upstream-commit: d1767bbf672355b9063099d641106dd4ea5303b3 Component: engine
shin-2013-04-03 05:39:39 -07:00
668c8b4472
use wg.Done() isntead of wg.Add(-1) Upstream-commit: cab31fd5128fbfcc2f1b44d3d643fe96a28c88fc Component: engine
Dominik Honnef2013-04-03 11:11:34 +02:00
f1a2914b2e
kill the right containers in runtime_test Upstream-commit: 1fc55c2bb9bce1451d6199e8aaa23ef8baa0e46c Component: engine
Dominik Honnef2013-04-03 11:10:50 +02:00
2aa92512ac
remove dead code in CmdPush Upstream-commit: 5ecd940a594507075e6cee80aa70c258a9d850ca Component: engine
Dominik Honnef2013-04-03 11:08:32 +02:00
bfd11809a8
Discarding errors in CmdRun Upstream-commit: a19a9e3ca81880f030a7621a9e03ffb63c95b1f1 Component: engine
Guillaume J. Charmes2013-04-02 12:21:35 -07:00
9ff05ec38f
Close the broadcaster once they are not needed anymore Upstream-commit: ad2bbe23be869e3a3287cedbf0408115e97a4a49 Component: engine
Guillaume J. Charmes2013-04-02 12:19:01 -07:00
20aa05fbaa
Add a stdincloser to container.Attach in order to close the client connection when needed Upstream-commit: 6882c78ce447b468262b53aef2ac0577151ea98c Component: engine
Guillaume J. Charmes2013-04-02 12:18:20 -07:00
2dc1c74a96
Better crash simulation in TestRestore ; force state lock creation when loading a container from disk Upstream-commit: 791ca6fde47d26a96134b1715580303ea6cd17ed Component: engine
shin-2013-04-02 10:06:49 -07:00
44017879ad
Add a TestRunExit, make sure cmdRun returns after process dies Upstream-commit: 43484e8b502be1dbf2e587524ae8ef036181b186 Component: engine
Guillaume J. Charmes2013-04-02 09:22:30 -07:00
6806cbe306
Fix a bug which caused 'docker push' to fail with 411-lenght-required in Go 1.0 Upstream-commit: a05af3ebf32da594648352a30b9045c67ba9cbbb Component: engine
Solomon Hykes2013-04-02 18:37:29 -07:00
7777dd857e
docker run [-a [stdin|stdout|stderr] [...]]: choose which streams to attach to when running a command. Fixes#234. Upstream-commit: c04af2a330991fcd52bcce213bcb863cff95d378 Component: engine
Solomon Hykes2013-04-02 18:07:16 -07:00
506ecddd21
Add test for attaching only stdin at run with 'docker run -i -a=stdin' Upstream-commit: c77063afcd00f97c6922c41e509090dd4f8c2b95 Component: engine
Solomon Hykes2013-04-02 18:05:19 -07:00
5597e432af
'docker run' in attached mode no longer waits for the process to exit. Take this into account in the tests. Upstream-commit: 2db358146f8bc0f63d840c8e0227bcbe7a8e3063 Component: engine
Solomon Hykes2013-04-02 11:07:49 -07:00
8a9e7f42f0
When simulating disconnects in the tests, make sure that the command returns - but don't check for a specific return value Upstream-commit: 1cc1cb099ed8fb0e4fc47debe38a33d17e211a65 Component: engine
Solomon Hykes2013-04-02 11:06:42 -07:00
138633b4ab
[unit tests] Cleanly kill all containers before nuking a temporary runtime Upstream-commit: 8f9e4542417421ee62ac952d1e04268520a75d8f Component: engine
Solomon Hykes2013-04-02 11:00:14 -07:00
96ec0e911c
Use an environment variable to activate debug mode, instead of a package-specific flag Upstream-commit: 76663079312bb501f545823d9650df9eeda2c882 Component: engine
Solomon Hykes2013-04-02 10:58:16 -07:00
5e064a959a
More thorough test case, use container.Stop() instead of lxc-kill, use setStopped() during the restore step Upstream-commit: c780ff5ae726bc8acd30b9ef476cd111c477ec35 Component: engine
shin-2013-04-02 07:01:43 -07:00
450827385c
Renamed writeBroadcaster.Close() to CloseWriters(). Upstream-commit: a83d87abd442dda5f2d67a2701aae9c7b891e68a Component: engine
Robert Obryk2013-04-02 10:45:17 +02:00
f7fc21bc5d
Refactored CmdRun and CmdAttach to use Container.Attach Upstream-commit: c808940c041ca8c7f9f9c5e0fa93e37ebfdd412a Component: engine
Solomon Hykes2013-04-01 23:52:20 -07:00
38ad5f3006
Fixed a lot of language and small things. Upstream-commit: 81874ad4425ed1a3520944bfcced271041e7b0f4 Component: engine
Thatcher Peskens2013-04-01 19:11:09 -07:00
21949938ee
make complex options to stand out Upstream-commit: dcc9dfb27d49c7e7f58e04bf5656656f69e76fe1 Component: engine
Mikhail Sobolev2013-03-28 07:50:33 +02:00
4c1daebf6d
makefile: simplify "fmt" target, and include -s flag Upstream-commit: 650dff73bdd48058ec0186cbda90683ff2287df0 Component: engine
Francisco Souza2013-04-01 18:50:25 -03:00
a9b7db02e4
Shortening the git commit used in the version command Upstream-commit: e566b89a5f13f36fad2e2bb37faf9079e06e051e Component: engine
Shawn Siefkas2013-04-01 16:31:33 -05:00
4d479797e6
Don't use an interface{} where a string will do. Upstream-commit: 887f509d1dd2a5e34fbfb19ccd2c4b1eb3127dbd Component: engine
Caleb Spare2013-03-30 00:36:27 -07:00
c5d25049cd
A few spelling/grammar corrections. Upstream-commit: 13d2b086386196e9f4f03e4a18d508a65f6fc5ff Component: engine
Caleb Spare2013-03-30 00:22:24 -07:00
2ac307781e
Use a *println or *print function instead of *printf where appropriate. Upstream-commit: c298a91f95dafb056cede9036f5e81f259b8f3e9 Component: engine
Caleb Spare2013-03-30 00:23:12 -07:00