Commit graph

44632 commits

Author SHA1 Message Date
Solomon Hykes
903f091adc 'docker ps' lists running containers. 'docker ps -a' also includes stopped containers 2013-01-28 23:13:58 -08:00
Solomon Hykes
c283ff6675 Fixed typo in Darwin termios settings 2013-01-28 18:37:54 -08:00
Solomon Hykes
7a50153c32 'docker run -i' optionally opens stdin. 'docker attach' attaches to a running container (including stdin). 'docker run -t' allocates a tty (still buggy) 2013-01-28 17:50:12 -08:00
Andrea Luzzardi
9906a9af8f Merge branch 'master' of github.com:dotcloud/docker 2013-01-28 17:32:38 -08:00
Andrea Luzzardi
54a946e333 Networking: Mount bind (ro) the host's /etc/resolv.conf into the
container in order to get networking.
2013-01-28 17:32:15 -08:00
shin-
c914aaf43e Forgot an import in termios_darwin 2013-01-28 17:07:38 -08:00
shin-
08ac1d0b35 Different termios for linux/darwin 2013-01-28 17:06:46 -08:00
Andrea Luzzardi
333abbf85a go fmt 2013-01-28 14:30:05 -08:00
Solomon Hykes
192446e796 Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-01-28 14:23:39 -08:00
Andrea Luzzardi
d802a31be5 Fixed broken unit test after merge 2013-01-28 12:11:30 -08:00
Andrea Luzzardi
2cb444248d merge conflicts 2013-01-28 12:06:49 -08:00
Andrea Luzzardi
fb40a78804 docker: Make sure to umount the container if it's still mounted at
destruction
2013-01-28 12:00:20 -08:00
Andrea Luzzardi
174f25909c 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.
2013-01-28 11:58:47 -08:00
Andrea Luzzardi
a2d7dd1a19 Added sequential and parallel benchmarks in order to stress test docker
(create, run, destroy workflow)
2013-01-28 11:51:51 -08:00
Andrea Luzzardi
d8bc912238 filesystem: Added IsMounted() unit tests 2013-01-28 11:51:41 -08:00
Solomon Hykes
54532e2ab7 Convenience logging in rcli 2013-01-27 15:43:08 -08:00
Solomon Hykes
904b0ab52b Experimenting with a UI which differentiates images and containers 2013-01-27 15:42:42 -08:00
Solomon Hykes
6df37208be Added various debugging commands: cat, write, ls, inspect, mount, umount 2013-01-27 01:08:34 -08:00
Solomon Hykes
55a7560436 Fixed bug which caused 'docker stop' to crash when specifying a non-existing container. 2013-01-27 01:07:21 -08:00
Solomon Hykes
fc19a00103 Fixed a bug which caused Container.Start() to fail when the rootfs was already mounted. 2013-01-27 01:06:02 -08:00
Solomon Hykes
e920cb9cd9 Removed dependency on docker.fake. Added extra information to 'docker list': Pid, Exit code, Mounted 2013-01-27 01:04:33 -08:00
Solomon Hykes
3703536303 docker tar: stream the contents of a container as a tar archive 2013-01-27 00:59:49 -08:00
Solomon Hykes
b6fb5bb21b Create empty mountpoints (./rw and ./rootfs) every time we create or load a container 2013-01-27 00:49:09 -08:00
Solomon Hykes
5d6dd22fb2 Plugged 4 more commands into the real backend: 'diff', 'reset', 'run', 'stop'. 'run' actually runs the process, but doesn't capture outptu properly, and encounters mount issues 2013-01-26 15:56:42 -08:00
Solomon Hykes
dbc7fb7575 Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-01-25 18:02:56 -08:00
Andrea Luzzardi
6513a1d94e Fixed a bug preventing containers from running after being restored 2013-01-25 16:20:34 -08:00
Solomon Hykes
fca2625490 Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-01-25 15:42:43 -08:00
Andrea Luzzardi
f4e25694c1 container: Fixed a bunch of race conditions by getting rid of lxc-wait. 2013-01-25 15:36:47 -08:00
Solomon Hykes
b397ce5dea First integration of the actual docker package into the server. Pull and put create actual containers. Rm actually removes them. The rest is still fake. 2013-01-25 14:44:16 -08:00
Solomon Hykes
11b65a00c6 Container.SetUserData() and GetUserData(): attach optional user data to a container 2013-01-25 14:39:02 -08:00
Andrea Luzzardi
1df9819b25 Merge branch 'master' of github.com:dotcloud/docker 2013-01-25 14:09:54 -08:00
Andrea Luzzardi
2193b0c954 Docker: Fixed an issue with container unmarshaling which prevented
docker.restore() to work properly.
2013-01-25 14:09:21 -08:00
Solomon Hykes
851812f1c6 'docker run -t': allocate a pseudo-tty for interactive mode (disabled by default) 2013-01-25 11:33:18 -08:00
Solomon Hykes
c885a05bdf First implementation of a layer store. 'docker pull' and 'docker put' now really work (but containers are still fake) 2013-01-25 11:32:37 -08:00
Solomon Hykes
63fc3e5ab3 rcli.DialTCP(): return a net.TCPConn to allow TCP-specific operations (ie. half-close) 2013-01-25 11:27:47 -08:00
Solomon Hykes
75529a202f Fixed IO edge cases on docker client. Wait for stdin to close before exiting if it's a pipe, but not if it's a terminal. Correctly send stdin EOF to the server with TCP half-close 2013-01-25 11:26:18 -08:00
Solomon Hykes
401dd3d8e0 Moved more utilities to docker/future 2013-01-25 11:23:18 -08:00
Andrea Luzzardi
9b300272df Merge branch 'master' of github.com:dotcloud/docker 2013-01-25 11:06:07 -08:00
Andrea Luzzardi
09502e4faa Filesystem: Changes API 2013-01-25 11:05:11 -08:00
Solomon Hykes
f3ffba7afe Factored out docker/rcli (remote cli protocol), docker/fake (mocking utilities) and docker/future (real utilities which don't yet fit in the core) 2013-01-24 20:01:32 -08:00
Andrea Luzzardi
4fc390ee39 Merge branch 'master' of github.com:dotcloud/docker 2013-01-24 18:11:08 -08:00
Solomon Hykes
553ca56d7e Enabled stdin and interactive mode. 'docker run -a CONTAINER bash' will now correctly run an interactive shell. This required switching to a simple raw TCP protocol by default 2013-01-23 23:14:46 -08:00
Andrea Luzzardi
06d8f7ce63 filesystem tests: Added a newTestFilesystem help function to remove
duplicate code
2013-01-23 17:18:07 -08:00
Solomon Hykes
98f090ead8 Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-01-22 18:58:04 -08:00
Solomon Hykes
1a77a32a83 GFR model: Get, Fork, Run. There are no more layers, only containers 2013-01-22 18:29:44 -08:00
Andrea Luzzardi
73d7265429 go fmt 2013-01-22 17:30:37 -08:00
Andrea Luzzardi
f958bdba8a Fixed lxc-wait race condition. Added unit test to try running multiple
containers in parallel.
2013-01-22 17:30:09 -08:00
Andrea Luzzardi
f0c08b57ab Restart() implementation 2013-01-22 15:03:40 -08:00
Andrea Luzzardi
64fc86fba7 State: Keep track of the container start time 2013-01-22 15:03:27 -08:00
Andrea Luzzardi
e035f3e92b Filesystem: Perform syscalls directly instead of executing userland
tools. Added sanity checks. Improved unit tests.
2013-01-22 12:12:16 -08:00