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
bef500257a
go fmt
...
Upstream-commit: 0d4600626919ec072289c003051f6323db3ffb5f
Component: engine
2013-02-13 14:00:36 -08:00
Andrea Luzzardi
6d5ac81c48
utils: Added SelfPath(), which figures out the current (absolute) path of the running binary
...
Upstream-commit: e6adfa2bc68db8f1f1ccd9facea6fa8f8bed4a33
Component: engine
2013-02-13 13:58:28 -08:00
Andrea Luzzardi
f69baca3fc
LXC template: Cleanup using text/template variables
...
Upstream-commit: 2416edd4002f9c142c19126b93f89e45aabf8d63
Component: engine
2013-02-13 13:56:19 -08:00
Solomon Hykes
62200d164a
"docker info": display system-wide information.
...
Upstream-commit: a608f5e3b8455f21dee94a1e358daed420b5e3b7
Component: engine
2013-02-04 23:37:25 -08:00
Solomon Hykes
c8f28dfa5c
Clearer error message in the client when DOCKER env variable is not set
...
Upstream-commit: edc996860496f63b8e4eb786890e8ba2bab7e875
Component: engine
2013-02-04 23:25:28 -08:00
Solomon Hykes
4e4db8217c
Added cool image to the README
...
Upstream-commit: 63ce08107e0b2c5a880e0aa0af99191fdb89c37c
Component: engine
2013-02-01 13:00:41 -08:00
Solomon Hykes
dc0e5f02d3
Added 'Standard Container manifesto' to README
...
Upstream-commit: 0db56e6c519b19ec16c6fbd12e3cee7dfa6018c5
Component: engine
2013-02-01 12:57:02 -08:00
Solomon Hykes
d5ca862c98
docker rmi: remove an image
...
Upstream-commit: de1c361a6eea95c867c43619fc1e7a7b8a147750
Component: engine
2013-02-01 00:08:45 -08:00
Joffrey F
b0566e789f
Fixed README formatting
...
Upstream-commit: 81459a5afc0a6b103c2076481451f56b5b94210e
Component: engine
2013-01-31 19:01:18 -08:00
shin-
2e395975c2
Added README file with setup instructions
...
Upstream-commit: cc3fece3f871a9bf51e9a802b98dfb2820db3c46
Component: engine
2013-01-31 18:58:05 -08:00
Solomon Hykes
72e57e46d1
Fixed a bug with 'docker run'
...
Upstream-commit: bba4e368077cbc73db2a12c259c5fc2330dffe75
Component: engine
2013-01-29 16:51:03 -08:00
Andrea Luzzardi
aa7ddfed10
Merge branch 'master' of github.com:dotcloud/docker
...
Upstream-commit: 5a3fe231a24cb75f9faf6b42434fa7ffd35a3f4e
Component: engine
2013-01-29 15:51:30 -08:00
Andrea Luzzardi
2afd5c1951
Container: Improved pseudo-terminal support
...
Upstream-commit: caea45dd72835926a615ecb36a256172c19f2a36
Component: engine
2013-01-29 15:51:21 -08:00
Solomon Hykes
2549d8dd89
'docker run' with no argument runs a shell in the base image
...
Upstream-commit: 29410f43a0e576f3c7fe27456af2888cb8f9bc5f
Component: engine
2013-01-29 15:51:04 -08:00
Solomon Hykes
2c15ec4bf8
Fix a bug which caused the client to never exit in interactive mode when NORAW is set.
...
Upstream-commit: d5be77075a6e3dbc8ea167d4c5ab60663b0dbe68
Component: engine
2013-01-29 15:37:54 -08:00
Solomon Hykes
572ecf3354
Fix web UI to work on remote URLs
...
Upstream-commit: 35f5cc239bea6931cf92459236a827762e040023
Component: engine
2013-01-29 15:30:32 -08:00
Solomon Hykes
a8ed4c0fb8
Merge branch 'master' of ssh://github.com/dotcloud/docker
...
Upstream-commit: 0d9db395393c63dda9b33bdda8308d874a9eadb8
Component: engine
2013-01-29 15:24:51 -08:00
Solomon Hykes
9aed505733
export NORAW=1 to disable raw mode in the client
...
Upstream-commit: 8c142c612737f45fb97d9ad949b1c3bd42d38c71
Component: engine
2013-01-29 15:24:39 -08:00
Andrea Luzzardi
9b61c28d6f
Created tests for stdin pipes and tty handling
...
Upstream-commit: ca40989e456cf81f26215059530b328d3be8c71c
Component: engine
2013-01-29 15:16:45 -08:00
Andrea Luzzardi
3297bbd8b6
go fmt
...
Upstream-commit: 94b1cf4be3606ff731b3ca012e5eddf021f4608f
Component: engine
2013-01-29 13:50:27 -08:00
Solomon Hykes
f9700d8d8c
Fix bug introduced in c7a944caf28d85bd26f4031465e958006a764ac2 which caused 'docker images' to crash
...
Upstream-commit: f8f9285ccaeb35a2d5909a03f48f9d3b9d34aca2
Component: engine
2013-01-29 12:15:39 -08:00
Solomon Hykes
47885a98e3
Generate shorter container IDs for readability
...
Upstream-commit: dfd15fbee87cc954d85884b1ce99ffacf7721a74
Component: engine
2013-01-29 03:25:00 -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
9b7c269240
docker run -c COMMENT
...
Upstream-commit: 4f3362b85a856f7ec5de0559f10386a8615cad60
Component: engine
2013-01-29 03:21:23 -08:00
Solomon Hykes
747cbf0250
'docker ps' prints shorter lines
...
Upstream-commit: bcfe2aa2a7834eb49790f400192422350ba32cdb
Component: engine
2013-01-29 03:18:07 -08:00
Solomon Hykes
d77271f58a
Fixed bug which caused permission errors for non-root users on rw layer (Thanks @jpetazo!)
...
Upstream-commit: 279917e353fa888e5afd0904df80a225d462f30d
Component: engine
2013-01-29 03:14:16 -08:00
Solomon Hykes
a44e018a27
Temporary licence file until we open-source it
...
Upstream-commit: d93070b2077dc805eee6c26340a371f4999447de
Component: engine
2013-01-28 23:34:17 -08:00
Solomon Hykes
d92664f491
'docker inspect' can be used on images and containers
...
Upstream-commit: 1b898574cf8d814c453755d83065b22c211f6a29
Component: engine
2013-01-28 23:22:45 -08:00
Solomon Hykes
b6d8688923
Fixed a bug which caused 'docker cp' to fail when the destination name already exists.
...
Upstream-commit: 49da84d7c4babd597dfbcba168a81a4434c28bf1
Component: engine
2013-01-28 23:17:47 -08:00
Solomon Hykes
5b2d2c5a81
Fixed docker.fake so that fake.StartCommand() can be used on Darwin for testing
...
Upstream-commit: d8a4910eee1f62dc8182c77d5caba9650494941d
Component: engine
2013-01-28 23:16:41 -08:00
Solomon Hykes
98216a0181
Fixed bug which caused AUFS layers to be mounted in the wrong order.
...
Upstream-commit: 2dadcf9b81f27113564260e668d5b734d7a9c63c
Component: engine
2013-01-28 23:15:02 -08:00
Solomon Hykes
64d5611a9c
'docker ps' lists running containers. 'docker ps -a' also includes stopped containers
...
Upstream-commit: 903f091adc3878f9e08874dd4b748ae10853cbd3
Component: engine
2013-01-28 23:13:58 -08:00
Solomon Hykes
9f3880a4db
Fixed typo in Darwin termios settings
...
Upstream-commit: c283ff667550d6e86a7bcc16259c796f4261be6e
Component: engine
2013-01-28 18:37:54 -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
f1c2218a8a
Merge branch 'master' of github.com:dotcloud/docker
...
Upstream-commit: 9906a9af8f2f66dfd630c219936e0a27b9754e56
Component: engine
2013-01-28 17:32:38 -08:00
Andrea Luzzardi
3e5ac730a8
Networking: Mount bind (ro) the host's /etc/resolv.conf into the
...
container in order to get networking.
Upstream-commit: 54a946e333077f59c8e6eb0663ab3e138a9e8320
Component: engine
2013-01-28 17:32:15 -08:00
shin-
e0d4eb7361
Forgot an import in termios_darwin
...
Upstream-commit: c914aaf43e9eea2e67f42fc93667a40c36b6cd35
Component: engine
2013-01-28 17:07:38 -08:00
shin-
0922b8dd16
Different termios for linux/darwin
...
Upstream-commit: 08ac1d0b3543b9ab98b2cbeaea6bb9512d6a14b5
Component: engine
2013-01-28 17:06:46 -08:00
Andrea Luzzardi
a499fea2e5
go fmt
...
Upstream-commit: 333abbf85a8db9578e34c340032e32de3c8fefe8
Component: engine
2013-01-28 14:30:05 -08:00
Solomon Hykes
4deb0e4193
Merge branch 'master' of ssh://github.com/dotcloud/docker
...
Upstream-commit: 192446e796f8bace607c82c2f5c43ed5826bf3a9
Component: engine
2013-01-28 14:23:39 -08:00
Andrea Luzzardi
2c16835563
Fixed broken unit test after merge
...
Upstream-commit: d802a31be538d7c90d3f33474595dfdb77b7e50e
Component: engine
2013-01-28 12:11:30 -08:00
Andrea Luzzardi
6ec3df7414
merge conflicts
...
Upstream-commit: 2cb444248db185a7d332434d53605e289962af0c
Component: engine
2013-01-28 12:06:49 -08:00
Andrea Luzzardi
9c18c9de84
docker: Make sure to umount the container if it's still mounted at
...
destruction
Upstream-commit: fb40a7880494afffe384ac955f5f4e3a4971c676
Component: engine
2013-01-28 12:00:20 -08:00
Andrea Luzzardi
c2dc6c5c0b
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.
Upstream-commit: 174f25909c525015cb84f1b82376091a1ac9c118
Component: engine
2013-01-28 11:58:47 -08:00
Andrea Luzzardi
9632a09e60
Added sequential and parallel benchmarks in order to stress test docker
...
(create, run, destroy workflow)
Upstream-commit: a2d7dd1a1908fc3dc6ac5648b5ea12eaecb19b1b
Component: engine
2013-01-28 11:51:51 -08:00
Andrea Luzzardi
7b5bb8d40c
filesystem: Added IsMounted() unit tests
...
Upstream-commit: d8bc912238dfa75dff0902b9d97133e200807bea
Component: engine
2013-01-28 11:51:41 -08:00
Solomon Hykes
8802c173bf
Convenience logging in rcli
...
Upstream-commit: 54532e2ab709a25943a9d0b470ecf5c155deee5f
Component: engine
2013-01-27 15:43:08 -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
a61c8ab5e5
Added various debugging commands: cat, write, ls, inspect, mount, umount
...
Upstream-commit: 6df37208be269540a6f291448491bf5de9f46c96
Component: engine
2013-01-27 01:08:34 -08:00