Commit Graph

73 Commits

Author SHA1 Message Date
Solomon Hykes f13fe3e23b Show shorthand container IDs for convenience. Shorthand IDs (or any non-conflicting prefix) can be used to lookup containers 2013-03-31 02:02:01 -07:00
Guillaume J. Charmes 2287b5e204 Close the containers stdin when the process dies 2013-03-30 09:08:53 -07:00
Guillaume J. Charmes a5ec50d44b Fix a scope issue preventing the close of slave stdin pty (#228) 2013-03-30 09:07:54 -07:00
Guillaume J. Charmes 69fb3b6d4d Store the master ptys in order to close them when the process dies (#228) 2013-03-30 09:05:53 -07:00
Solomon Hykes ec819da2d3 Merge pull request #265 from dotcloud/formating_debug_harmonize
Formating debug harmonize
2013-03-29 21:30:43 -07:00
Guillaume J. Charmes e7df03cd90 Do not log non-running containers 2013-03-29 08:46:06 -07:00
Guillaume J. Charmes 968e664c99 Remove unused variable from container struct 2013-03-29 08:41:48 -07:00
Guillaume J. Charmes 970e82aaf3 Add some error checking in container monitor 2013-03-29 08:29:59 -07:00
Guillaume J. Charmes e92d1cdee0 Harmonize the error management. Use fmt.Errorf instead of errors.New 2013-03-29 08:19:42 -07:00
Guillaume J. Charmes 0c1ef6e0ab Add debug infos 2013-03-29 08:18:43 -07:00
Maxim Treskin cf1721909d Remove unnecessary part of paths to lxc executables 2013-03-29 12:07:25 +07:00
Jonathan Rudenberg 6c0ec2f878 Camelize some snake_case variable names 2013-03-28 20:12:23 -04:00
Guillaume J. Charmes f0ad6c88dc #189 Fix the env in TTY mode 2013-03-26 07:01:59 -07:00
shin- 1cfc4984d5 Re-enabled help for run command and added client-side error messages when arguments are missing 2013-03-26 08:31:26 -07:00
Guillaume J. Charmes 3d67bb3423 Force xterm as TERM in tty mode 2013-03-25 19:20:18 -07:00
Guillaume J. Charmes f8faef1730 Fix termcaps on the linux client 2013-03-25 18:44:05 -07:00
Solomon Hykes 574ba2597a Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-03-25 14:25:17 -07:00
shin- 030405ae9a Fixed issue #158 (docker crashes when docker run is called with not enough arguments) 2013-03-25 07:17:11 -07:00
Solomon Hykes cba8ad509b Prevent container.Kill() from crashing if container.cmd is nil 2013-03-23 19:51:35 -07:00
Solomon Hykes bc1b6a08ee Moved image name into config. runtime.Create() now receives a single Config parameter 2013-03-23 12:39:09 -07:00
Solomon Hykes a9752a83dc runtime.Create receives an image name + Config. The Config includes all required runtime information: command, environment, ports etc. 2013-03-23 12:16:58 -07:00
Solomon Hykes e07b18d7a6 'docker run -e': set environment variables in a container 2013-03-22 20:36:34 -07:00
Solomon Hykes 8eb90b9af5 Folded graph/ back into main package 2013-03-21 17:47:23 -07:00
Solomon Hykes 17e32c7fec No need for a Container.networkManager field: it can be accessed via Container.runtime 2013-03-21 01:43:03 -07:00
Solomon Hykes 88f79f745a moved GenerateId() to the graph package 2013-03-21 01:07:07 -07:00
Solomon Hykes 7d26e81507 Renamed Docker{} to Runtime{} for clarity 2013-03-21 00:41:15 -07:00
Solomon Hykes d25a4e3f33 Simplified the core container API, ported it to the new graph. Some features are missing eg. image 'paths' and tags 2013-03-21 00:25:00 -07:00
creack d84004e46c Put back the github.com path for the import 2013-03-12 11:59:27 -07:00
creack 640c100543 Merge master within fs 2013-03-12 08:33:21 -07:00
Guillaume J. Charmes 6bdf903140 gofmt 2013-03-12 05:36:37 -07:00
Guillaume J. Charmes b3de9a9232 Add "nuke" function to docker tests to avoid disk space waste 2013-03-12 00:08:41 -07:00
Sam Alba 847b00afcf Renamed Container property Ram to Memory before it is too late 2013-03-11 19:25:02 -07:00
Sam Alba 2fa2fb3c41 Added support for RamSwap in the generated LXC config (to limit the swap and have the right default settings) 2013-03-11 17:40:54 -07:00
Solomon Hykes 0722255205 Fix a bug which caused dockerd to crash at startup if a container didn't have a registered mountpoint 2013-03-11 17:05:01 -07:00
Guillaume J. Charmes 8b1dfbf4ea Change relative paths to absolute 2013-03-11 02:59:52 -07:00
shin- 0690ad20d6 post-merge repairs 2013-03-11 07:39:06 -07:00
shin- 1c77da4c40 Merged upstream changes in fs branch 2013-03-11 05:50:09 -07:00
shin- b8e9b22862 Merged master branch into fs 2013-03-11 05:42:36 -07:00
Solomon Hykes 46f59cb0ba Fixed a bug which caused docker to crash at startup while restoring existing containers 2013-03-09 19:49:09 -08:00
Solomon Hykes 6b27e8fb1d gofmt 2013-03-09 19:44:09 -08:00
shin- 6951eef923 Plugged in image store in front-end (some commands are deactivated right now, will progressively reintroduce them 2013-03-08 10:48:22 -08:00
Solomon Hykes 8242af7459 Container logs are persisted on disk 2013-03-06 16:08:44 -08:00
Andrea Luzzardi eb0c453036 Container can now take a list of ports to expose in its config 2013-02-28 11:51:14 -08:00
shin- e9741961ad Halfway through fs branch fixes, TestUser not passing 2013-02-26 17:45:46 -08:00
Andrea Luzzardi cbacdddfaf Merge from master 2013-02-26 17:32:07 -08:00
Solomon Hykes 56c5f79264 docker wait: block until a container exits, and print its exit code 2013-02-26 11:43:54 -08:00
Andrea Luzzardi 52b8621f08 Integrated the network allocator into Docker. A networking environment
is assigned to each container upon Start and released whenever the
container exits.
2013-02-25 14:06:22 -08:00
Andrea Luzzardi b5ab1c3eed Basic networking support with hardcoded addresses. Work in progress. 2013-02-21 10:47:57 -08:00
Andrea Luzzardi 8da8bea279 Fixed a bug preventing proper reattachment to stdin upon container restart 2013-02-13 19:05:57 -08:00
Andrea Luzzardi 7489e6a97a Generate LXC config upon start rather than at container creation 2013-02-13 18:14:46 -08:00