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
Andrea Luzzardi
005db1982d
Merge branch 'master' of github.com:dotcloud/docker
2013-01-22 11:13:38 -08:00
Andrea Luzzardi
8e9bb02ce5
Container: Better serialization/reloading support
2013-01-22 11:13:22 -08:00
Solomon Hykes
3b69ff6441
'docker snapshot': create a new layer from a container. 'docker tar': stream the contents of a container or layer as a tar archive
2013-01-22 09:54:56 -08:00
Andrea Luzzardi
78c02daf47
container.Name -> container.Id
2013-01-21 18:39:52 -08:00
Solomon Hykes
aa31e7764d
'docker logs': print full logs of a container
2013-01-21 18:31:12 -08:00
Solomon Hykes
72c0a091c0
Merge branch 'master' of ssh://github.com/dotcloud/docker
2013-01-21 18:15:19 -08:00
Solomon Hykes
559e3200fa
'docker rm': remove layers. Layers currently in use can't removed.
2013-01-21 18:12:56 -08:00
Andrea Luzzardi
13cd4650fd
Removed bogus .swp file
2013-01-21 18:06:31 -08:00
Andrea Luzzardi
24dac22892
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.
2013-01-21 18:03:23 -08:00
Solomon Hykes
be3563cebb
Fix the height of the terminal window in the web UI
2013-01-20 22:23:11 -08:00