Andrea Luzzardi
966f1c8314
Fixed a bug preventing proper reattachment to stdin upon container restart
...
Upstream-commit: 0da9ccc18e9c30347f394e4cc1231b4b6edca69e
Component: engine
2013-02-13 19:05:57 -08:00
Andrea Luzzardi
e710d4bb19
Generate LXC config upon start rather than at container creation
...
Upstream-commit: 1793538a68c8fc2c7c85848d375f12f94c9012e5
Component: engine
2013-02-13 18:14:46 -08:00
Andrea Luzzardi
aaedaa2b20
Implemented support to run as a different user (through the -u flag)
...
Upstream-commit: 6de3e8a22dfa736f88c0477392474d73f7bed3c5
Component: engine
2013-02-13 17:24:35 -08:00
Andrea Luzzardi
22a81ca759
Implemented a self-injecting process wrapper that runs inside the container
...
- Before starting the container, docker injects itself inside the container by mount binding the dockerd binary into /sbin/init
- Instead of running the user process directly inside the container, we run /sbin/init targetprocess [args...]
- When docker is run as /sbin/init (e.g. argv[0] == "/sbin/init"), then its own sys init code kicks in
- The sys init code will be responsible for setting up the process environment prior to its execution (setuid, networking, ...).
- Finally, docker's sys init will exec() the container's process, thus replacing itself with the target binary (which will be running as pid 1)
Upstream-commit: 58a22942602f9035a1ed44c65ae2c501420600a3
Component: engine
2013-02-13 14:01:44 -08:00
Andrea Luzzardi
2afd5c1951
Container: Improved pseudo-terminal support
...
Upstream-commit: caea45dd72835926a615ecb36a256172c19f2a36
Component: engine
2013-01-29 15:51:21 -08:00
Andrea Luzzardi
3297bbd8b6
go fmt
...
Upstream-commit: 94b1cf4be3606ff731b3ca012e5eddf021f4608f
Component: engine
2013-01-29 13:50:27 -08:00
Solomon Hykes
8805019aeb
List containers ordered by creation time
...
Upstream-commit: c7a944caf28d85bd26f4031465e958006a764ac2
Component: engine
2013-01-29 03:24:31 -08:00
Solomon Hykes
870743bf59
'docker run -i' optionally opens stdin. 'docker attach' attaches to a running container (including stdin). 'docker run -t' allocates a tty (still buggy)
...
Upstream-commit: 7a50153c321ff96c16947b3bab9b8e385f2f2a5e
Component: engine
2013-01-28 17:50:12 -08:00
Andrea Luzzardi
a499fea2e5
go fmt
...
Upstream-commit: 333abbf85a8db9578e34c340032e32de3c8fefe8
Component: engine
2013-01-28 14:30:05 -08:00
Solomon Hykes
0dd4a9f417
Experimenting with a UI which differentiates images and containers
...
Upstream-commit: 904b0ab52b065025acbdba6fdc056ef1dff04d44
Component: engine
2013-01-27 15:42:42 -08:00
Solomon Hykes
cc23af2ae6
Fixed a bug which caused Container.Start() to fail when the rootfs was already mounted.
...
Upstream-commit: fc19a00103f25e4d3bd1102803b32bea299d3fd6
Component: engine
2013-01-27 01:06:02 -08:00
Solomon Hykes
2787997349
Create empty mountpoints (./rw and ./rootfs) every time we create or load a container
...
Upstream-commit: b6fb5bb21b73c90ae1833e32867781824f66ffb7
Component: engine
2013-01-27 00:49:09 -08:00
Solomon Hykes
12fbbf0518
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
...
Upstream-commit: 5d6dd22fb2d689f98cadba6b7317658331307f3e
Component: engine
2013-01-26 15:56:42 -08:00
Solomon Hykes
001d53c5f0
Merge branch 'master' of ssh://github.com/dotcloud/docker
...
Upstream-commit: dbc7fb757541260b75ef5a77176b77bb3fd99944
Component: engine
2013-01-25 18:02:56 -08:00
Andrea Luzzardi
488ccc535c
Fixed a bug preventing containers from running after being restored
...
Upstream-commit: 6513a1d94ed25a5f99b1e3d1670781f7597f9d35
Component: engine
2013-01-25 16:20:34 -08:00
Solomon Hykes
0fdf1beadc
Merge branch 'master' of ssh://github.com/dotcloud/docker
...
Upstream-commit: fca26254908387b96ed824c16199875955123928
Component: engine
2013-01-25 15:42:43 -08:00
Andrea Luzzardi
d69e225ffb
container: Fixed a bunch of race conditions by getting rid of lxc-wait.
...
Upstream-commit: f4e25694c15583ed6ed290aff0c29116f7ed361e
Component: engine
2013-01-25 15:36:47 -08:00
Solomon Hykes
10dcbda36f
Container.SetUserData() and GetUserData(): attach optional user data to a container
...
Upstream-commit: 11b65a00c66422a11d114260057384c59f5be4e2
Component: engine
2013-01-25 14:39:02 -08:00
Andrea Luzzardi
28021d1889
Docker: Fixed an issue with container unmarshaling which prevented
...
docker.restore() to work properly.
Upstream-commit: 2193b0c954e2fc9ce92fefa4e3b5a6c82ae98a3f
Component: engine
2013-01-25 14:09:21 -08:00
Andrea Luzzardi
f33d685f66
Fixed lxc-wait race condition. Added unit test to try running multiple
...
containers in parallel.
Upstream-commit: f958bdba8a7c1c62f2f6e3e7bc2ddf1599029ecf
Component: engine
2013-01-22 17:30:09 -08:00
Andrea Luzzardi
47356dc54b
Restart() implementation
...
Upstream-commit: f0c08b57abb6e273b54b3f6d253acfe7b0107972
Component: engine
2013-01-22 15:03:40 -08:00
Andrea Luzzardi
12fb0ecd0d
Container: Better serialization/reloading support
...
Upstream-commit: 8e9bb02ce530839dcd35db0c21ff219360485a34
Component: engine
2013-01-22 11:13:22 -08:00
Andrea Luzzardi
d915837cc1
container.Name -> container.Id
...
Upstream-commit: 78c02daf474d798eea2da94286b30171d8deb98f
Component: engine
2013-01-21 18:39:52 -08:00
Andrea Luzzardi
031dbdddeb
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.
Upstream-commit: 24dac22892cc3c8f34e90222f64b87d750b5025e
Component: engine
2013-01-21 18:03:23 -08:00
Andrea Luzzardi
5c70746915
Initial commit
...
Upstream-commit: a27b4b8cb8e838d03a99b6d2b30f76bdaf2f9e5d
Component: engine
2013-01-18 16:13:39 -08:00