Solomon Hykes
4c36cafeb2
Experimenting with a UI which differentiates images and containers
2013-01-27 15:42:42 -08:00
Solomon Hykes
46d1d0b2cb
Added various debugging commands: cat, write, ls, inspect, mount, umount
2013-01-27 01:08:34 -08:00
Solomon Hykes
778a0df2bc
Fixed bug which caused 'docker stop' to crash when specifying a non-existing container.
2013-01-27 01:07:21 -08:00
Solomon Hykes
6a03ad5a8a
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
a15b990273
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
28cee802fd
docker tar: stream the contents of a container as a tar archive
2013-01-27 00:59:49 -08:00
Solomon Hykes
f5096e1ca9
Create empty mountpoints (./rw and ./rootfs) every time we create or load a container
2013-01-27 00:49:09 -08:00
Solomon Hykes
f3884d35b9
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
c496862f7c
Merge branch 'master' of ssh://github.com/dotcloud/docker
2013-01-25 18:02:56 -08:00
Andrea Luzzardi
d832df3f65
Fixed a bug preventing containers from running after being restored
2013-01-25 16:20:34 -08:00
Solomon Hykes
154b2c3218
Merge branch 'master' of ssh://github.com/dotcloud/docker
2013-01-25 15:42:43 -08:00
Andrea Luzzardi
3d7fe92024
container: Fixed a bunch of race conditions by getting rid of lxc-wait.
2013-01-25 15:36:47 -08:00
Solomon Hykes
426d1ce39d
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
e7e6d0c575
Container.SetUserData() and GetUserData(): attach optional user data to a container
2013-01-25 14:39:02 -08:00
Andrea Luzzardi
81d3f671c3
Merge branch 'master' of github.com:dotcloud/docker
2013-01-25 14:09:54 -08:00
Andrea Luzzardi
1a65969e9a
Docker: Fixed an issue with container unmarshaling which prevented
...
docker.restore() to work properly.
2013-01-25 14:09:21 -08:00
Solomon Hykes
118c9c806c
'docker run -t': allocate a pseudo-tty for interactive mode (disabled by default)
2013-01-25 11:33:18 -08:00
Solomon Hykes
692ffc544a
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
821a34afb1
rcli.DialTCP(): return a net.TCPConn to allow TCP-specific operations (ie. half-close)
2013-01-25 11:27:47 -08:00
Solomon Hykes
99ff99d4a6
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
0e0edee341
Moved more utilities to docker/future
2013-01-25 11:23:18 -08:00
Andrea Luzzardi
8070ce8bfc
Merge branch 'master' of github.com:dotcloud/docker
2013-01-25 11:06:07 -08:00
Andrea Luzzardi
e6598252b8
Filesystem: Changes API
2013-01-25 11:05:11 -08:00
Solomon Hykes
5b74d5c7b6
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
071f3c078d
Merge branch 'master' of github.com:dotcloud/docker
2013-01-24 18:11:08 -08:00
Solomon Hykes
dd7d916110
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
342ce30538
filesystem tests: Added a newTestFilesystem help function to remove
...
duplicate code
2013-01-23 17:18:07 -08:00
Solomon Hykes
5c39e9da0a
Merge branch 'master' of ssh://github.com/dotcloud/docker
2013-01-22 18:58:04 -08:00
Solomon Hykes
9b8f666e6e
GFR model: Get, Fork, Run. There are no more layers, only containers
2013-01-22 18:29:44 -08:00
Andrea Luzzardi
8bb317408c
go fmt
2013-01-22 17:30:37 -08:00
Andrea Luzzardi
d76cdea5bf
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
8bdb36c7a4
Restart() implementation
2013-01-22 15:03:40 -08:00
Andrea Luzzardi
80cfc9418e
State: Keep track of the container start time
2013-01-22 15:03:27 -08:00
Andrea Luzzardi
10d8c51143
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
1008a7a7b4
Merge branch 'master' of github.com:dotcloud/docker
2013-01-22 11:13:38 -08:00
Andrea Luzzardi
aa3645cbe7
Container: Better serialization/reloading support
2013-01-22 11:13:22 -08:00
Solomon Hykes
269dd120bf
'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
9d28066178
container.Name -> container.Id
2013-01-21 18:39:52 -08:00
Solomon Hykes
afe8fbc939
'docker logs': print full logs of a container
2013-01-21 18:31:12 -08:00
Solomon Hykes
d1d64964e5
Merge branch 'master' of ssh://github.com/dotcloud/docker
2013-01-21 18:15:19 -08:00
Solomon Hykes
ea3c8097c0
'docker rm': remove layers. Layers currently in use can't removed.
2013-01-21 18:12:56 -08:00
Andrea Luzzardi
d905bcfbe3
Removed bogus .swp file
2013-01-21 18:06:31 -08:00
Andrea Luzzardi
910340e533
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
48e0529c78
Fix the height of the terminal window in the web UI
2013-01-20 22:23:11 -08:00
Solomon Hykes
60c56a86ad
docker run -a: optionally attach to the new process. Run it in the background by default
2013-01-20 22:22:51 -08:00
Solomon Hykes
24cda823c5
docker web -u: display the URL of the web UI
2013-01-20 22:21:59 -08:00
Solomon Hykes
303ef109b4
'docker diff': inspect changes to a container's filesystem
2013-01-20 22:21:26 -08:00
Solomon Hykes
5ecbba4d82
Experimental web UI
2013-01-20 15:55:00 -08:00
Solomon Hykes
39c601a07c
'docker run' accepts layer names (it will look up the most recently added layer of that name)
2013-01-20 15:54:21 -08:00
Solomon Hykes
4ab8b716e3
Improved 'docker layers': sort by added date, -l to show only N most recent
2013-01-20 14:13:25 -08:00