Commit Graph

7 Commits

Author SHA1 Message Date
Andrea Luzzardi 81fe2865f4 When the unit testing is not there, issue an error and offer a solution instead of automagically downloading the image
Upstream-commit: 994ec4c8c399538102d47850fc50c7a481d49595
Component: engine
2013-02-15 12:18:36 -08:00
Andrea Luzzardi 486ef707bc Autonomous testing: Don't depend on /var/lib/docker/images/ubuntu being
there. Instead, automatically downlaod the test image if not present.
Upstream-commit: dd84ba348532b5c50a6c46573803952ac662bc67
Component: engine
2013-02-14 15:37:45 -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 488ccc535c Fixed a bug preventing containers from running after being restored
Upstream-commit: 6513a1d94ed25a5f99b1e3d1670781f7597f9d35
Component: engine
2013-01-25 16:20:34 -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 d915837cc1 container.Name -> container.Id
Upstream-commit: 78c02daf474d798eea2da94286b30171d8deb98f
Component: engine
2013-01-21 18:39:52 -08:00
Andrea Luzzardi 5c70746915 Initial commit
Upstream-commit: a27b4b8cb8e838d03a99b6d2b30f76bdaf2f9e5d
Component: engine
2013-01-18 16:13:39 -08:00