Commit Graph

6349 Commits

Author SHA1 Message Date
Michael Crosby 842270ca38 Send sigterm to child instead of sigkill
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 39037a91f85a4a072e5aa7e585d8c2f6b211df8a
Component: engine
2014-03-14 15:42:05 -07:00
unclejack a7c2cbac56 Merge pull request #4660 from vieux/parsecommand
create the cli obj before calling parseCommand
Upstream-commit: 5c6d54073f045d70c961245aee26455deac86177
Component: engine
2014-03-14 17:36:40 +02:00
unclejack 19c6fcaf73 Merge pull request #4653 from creack/fix_expose_cache
Fix expose cache
Upstream-commit: 28a9ff7f2557d88174b46482a5b402c511684cf7
Component: engine
2014-03-14 16:09:13 +02:00
Tianon Gravi ef717aa91c Make sphinx warnings fatal in Travis
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Upstream-commit: ae47f709ca6a6c29b769191ceabb10e59a0408b1
Component: engine
2014-03-13 22:35:31 -06:00
Tianon Gravi b7e9a63083 Fix sphinx header underline warnings I introduced...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Upstream-commit: f6efcf20943e656ca977f1fd0ae5197f5757dff4
Component: engine
2014-03-13 22:35:09 -06:00
Victor Vieux 5a2ca94673 create the cli obj before calling parseCommand
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Upstream-commit: c349c9d14a1c4bf04f35f3f5c62b0bb92614bc81
Component: engine
2014-03-14 00:47:13 +00:00
Victor Vieux 0795e31f12 Merge pull request #4659 from creack/more_info
Have the exec driver and kernel version in non-debug mode in `docker info`
Upstream-commit: 9c21a73f7449e412e101ba688459a26137f2c50d
Component: engine
2014-03-13 17:32:42 -07:00
Victor Vieux b61f94b205 Merge pull request #4633 from crosbymichael/no-pid-kill
Don't kill by pid for other drivers
Upstream-commit: 400ae98d23f0fb70555b73f0dffa651f185999b4
Component: engine
2014-03-13 17:31:37 -07:00
Guillaume J. Charmes 5c034565db Add unit test for expose cache
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Upstream-commit: 7b89af2a08b65fac064603cb3b5eb8e091e2c076
Component: engine
2014-03-13 17:06:17 -07:00
Guillaume J. Charmes 4eb4057922 Have the exec driver and kernel version in non-debug mode in docker info
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Upstream-commit: 6411ee6d24d256e15909ea68b845b354dc51c4ed
Component: engine
2014-03-13 16:28:16 -07:00
Michael Crosby fa769864c8 Merge pull request #4658 from vieux/fix_display_build
fix build output
Upstream-commit: c0cef47b1e77c5527df3dd7abc7d3c51416befb5
Component: engine
2014-03-13 15:34:17 -07:00
Victor Vieux 1962352375 Merge pull request #4646 from tianon/double-dash
Update to double-dash everywhere
Upstream-commit: 212a870734b5be597579e59bfb8758c3b3198144
Component: engine
2014-03-13 15:31:14 -07:00
Victor Vieux abbecb8a25 as you could have multiple messages per line with streams, don't \r
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Upstream-commit: 03f0ec35ae31420dd6a56883535056087b1a75dd
Component: engine
2014-03-13 22:26:42 +00:00
Michael Crosby 0e6df3669c Update libcontainer readme and todo list
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: cbd2a30cd6185d1469f82f8b6693d6158c93d54a
Component: engine
2014-03-13 15:18:08 -07:00
Michael Crosby 0fda3b88ac Don't kill by pid for other drivers
Closes #4575
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 3fa99b35b05d9159d6f7f4c7465dec747da2c4e1
Component: engine
2014-03-13 15:04:23 -07:00
Michael Crosby 1080c0f16b Merge pull request #4656 from crosbymichael/fix-ptmx-link
Always symlink /dev/ptmx for libcontainer
Upstream-commit: 28994f86eef11074f613433893ef345321afef91
Component: engine
2014-03-13 14:57:17 -07:00
Guillaume J. Charmes 596209d4bb Merge pull request #4422 from alexlarsson/internal-mounts
Move all bind-mounts in the container inside the namespace
Upstream-commit: c7ea6e5da80af3d9ba7558f876efbf0801d988d8
Component: engine
2014-03-13 14:55:29 -07:00
Michael Crosby 75217fbf0a Always symlink /dev/ptmx for libcontainer
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 747275d30c4d4eb25ca798394cc04db00912adb2
Component: engine
2014-03-13 14:31:09 -07:00
Victor Vieux 0238b3e45c Merge pull request #4624 from creack/fix_apparmor_init
Fix issue when /etc/apparmor.d does not exists
Upstream-commit: 192917a1cbfd325cd4d141d76703a3ccfd6e60e7
Component: engine
2014-03-13 14:04:13 -07:00
Guillaume J. Charmes c733b13d1a Fix EXPOSE cache miss issue
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Upstream-commit: ab26c16b32420011b0aee3de1a3bce5a0afd6f4d
Component: engine
2014-03-13 13:58:09 -07:00
Tianon Gravi bf4d876000 Merge pull request #4649 from cglewis/release_add_breakathon
Add a "breakathon" for a testing/QA period to the release checklist
Upstream-commit: af5892384744b4d372e2865d7cd89e3981c15c1a
Component: engine
2014-03-13 13:43:37 -06:00
Charlie Lewis 47228d6a8c add a breakathon for testing
Docker-DCO-1.1-Signed-off-by: Charlie Lewis <charliel@lab41.org> (github: cglewis)
Upstream-commit: 6fc83eefd9e8d78044a51250d2ad185513fddd27
Component: engine
2014-03-13 12:39:24 -07:00
Michael Crosby f50f7dffd9 Merge pull request #4648 from creack/fix_raw_mode_darwin
Use BSD raw mode on darwin. Fixes nano, tmux and others
Upstream-commit: 89d2e14ed0e76bfd72c196c6190fbe9afce6a789
Component: engine
2014-03-13 12:15:50 -07:00
Alexander Larsson 7a46914030 Don't use separate bind mount for container
Since we're not not mounting anything but the base filesystem outside
the container we no longer need the separate bind mount at
/var/lib/docker/container/$id/root in order to see the base filesystem
without extra mounts. So, we drop this and mount (again) the container
root directly at the real basefs mountpoint.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Upstream-commit: bf1b27dfcc6c4e049706d7d104e1abc5c330815d
Component: engine
2014-03-13 20:08:29 +01:00
Alexander Larsson 746b307c72 Move all bind-mounts in the container inside the namespace
This moves the bind mounts like /.dockerinit, /etc/hostname, volumes,
etc into the container namespace, by setting them up using lxc.

This is useful to avoid littering the global namespace with a lot of
mounts that are internal to each container and are not generally
needed on the outside. In particular, it seems that having a lot of
mounts is problematic wrt scaling to a lot of containers on systems
where the root filesystem is mounted --rshared.

Note that the "private" option is only supported by the native driver, as
lxc doesn't support setting this. This is not a huge problem, but it does
mean that some mounts are unnecessarily shared inside the container if you're
using the lxc driver.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Upstream-commit: 6c266c4b42eeabe2d433a994753d86637fe52a0b
Component: engine
2014-03-13 20:01:29 +01:00
Alexander Larsson 1cf50c0291 Move .dockerenv parsing to lxc driver
This is not needed for e.g. the native driver

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Upstream-commit: 636959e20ae368e470a5c2420aae4528245b2cf6
Component: engine
2014-03-13 20:01:29 +01:00
Guillaume J. Charmes 5a323c5f4c Use BSD raw mode on darwin. Fixes nano, tmux and others
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Upstream-commit: 029aac96396f5a9d76adf5e4675d27321273dfbd
Component: engine
2014-03-13 11:11:02 -07:00
Victor Vieux 7f79b8abd6 Merge pull request #4387 from unclejack/multiple_metadata_retrieval_attempts
retry to retrieve layer metadata on failure during pull
Upstream-commit: 6ac6619a1ed52cbc1c0d8661c2cc40e9166fb989
Component: engine
2014-03-13 11:03:52 -07:00
Tianon Gravi c48adc6929 Update to double-dash everywhere
These were found using `git grep -nE '[^-a-zA-Z0-9<>]-[a-zA-Z0-9]{2}'` (fair warning: _many_ false positives there).

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Upstream-commit: 44fe8cbbd174b5d85d4a063ed270f6b9d2279b70
Component: engine
2014-03-13 11:46:02 -06:00
Sven Dowideit a6f4cbe233 Merge pull request #4638 from ichik1/cli-doc-minor-fix
Some minor fixes for cli docs
Upstream-commit: 51a46e6a4ff74d74307341593208285d61592608
Component: engine
2014-03-13 20:11:10 +10:00
Phillip Alexander 4fa0fa1ea2 Fix boilerplate text in Apache license
This commit updates the Apache license boilerplate with actual information. The Apache license appendix (designed to be removed before publication) states:

```
APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!)...
```

Additionally, the copyright year was not included. Copyright notices must reflect the current year. This commit updates the listed year to 2014.

see: http://www.copyright.gov/circs/circ01.pdf for more info

Docker-DCO-1.1-Signed-off-by: Phillip Alexander <git@phillipalexander.io> (github: phillipalexander)
Upstream-commit: 73596b00e053fedbf42f7abb87728e7176e5a95c
Component: engine
2014-03-12 23:39:36 -07:00
Ken ICHIKAWA e37e7c4783 Add missing options -t and -v to images subcommand doc
Docker-DCO-1.1-Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com> (github: ichik1)
Upstream-commit: 841fcad0ba03ff71a27ad2892fab3fdc83d071d8
Component: engine
2014-03-13 15:19:42 +09:00
Ken ICHIKAWA 8cfe00dd36 Remove duplicated description of --mtu
commit baa70e975186bb0ee8a4b16b9374cb6e794f8975 duplicates
the description of --mtu.
This patch removes the duplicated description.

Docker-DCO-1.1-Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com> (github: ichik1)
Upstream-commit: 471aa870f57e66128b08ec28e908fb1faacdfd40
Component: engine
2014-03-13 14:18:13 +09:00
Guillaume J. Charmes 4f20d92590 Merge pull request #4612 from tianon/cleaner-test-output
Cleaner test output
Upstream-commit: c7564b5e4d58c38e2f1ec5c4ab20b714b8949d28
Component: engine
2014-03-12 17:54:14 -07:00
Guillaume J. Charmes fcd3746eaa Merge pull request #4000 from cap10morgan/1141-merge-configs-on-commit
merge existing config when committing
Upstream-commit: db1afee3f023957adf43a4e9a565568e11e81d2d
Component: engine
2014-03-12 17:49:11 -07:00
Sven Dowideit 062a18ea7d Merge pull request #4619 from dgageot/patch-1
Update port_redirection.rst
Upstream-commit: 94f2d5240541c7652fbe8df4ab00dac49ef95dee
Component: engine
2014-03-13 09:31:16 +10:00
Guillaume J. Charmes d287fccca7 Merge pull request #4492 from ichik1/add-ip-forward-to-docs
Update daemon docs for --ip-forward
Upstream-commit: 8e0a4802ab13f40242ab997c8b75395d45fd52c0
Component: engine
2014-03-12 16:29:33 -07:00
Guillaume J. Charmes 69e0188d27 Fix issue when /etc/apparmor.d does not exists
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Upstream-commit: 6a325f1c7a243689ecf01f257ac7afb95fea7ec2
Component: engine
2014-03-12 11:13:24 -07:00
Victor Vieux 4c1f9818ed Merge pull request #4621 from unclejack/fix_empty_cidfile
don't leave empty CIDFile behind
Upstream-commit: bd1c51259433d7f5d3f2502fab6e12a8f4b30248
Component: engine
2014-03-12 11:12:51 -07:00
unclejack 80fe86e3ee don't leave empty cidFile behind
This makes `--cidfile` clean up empty container ID files. These are
left behind when creating the container fails.

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Upstream-commit: a56d1b93a1a16ac482b5e30773664f2538949c53
Component: engine
2014-03-12 19:36:19 +02:00
Michael Crosby 1ddbcf97d9 Merge pull request #4604 from vieux/improve_deprecation_warning_flags
improve deprecation message
Upstream-commit: 63dee4ebc4a5b5be6302f170cb7cb034914dfcf0
Component: engine
2014-03-12 10:18:49 -07:00
Michael Crosby ca8e67a716 Merge pull request #4603 from creack/fix_osx_attach
Fix OSX attach exit issue
Upstream-commit: ba49f5bce14e3cec900f3ab3bce9394d22d37db8
Component: engine
2014-03-12 10:08:55 -07:00
David Gageot ec32d7aa38 Update port_redirection.rst
Fix flags
Upstream-commit: 2a5e1abaa93b0081446420cae9d6d7d3892b6d75
Component: engine
2014-03-12 15:42:10 +01:00
Sven Dowideit e1d60948d6 Merge pull request #4526 from Rovanion/master
All caps variables in normal bash should be avoided not to accidentally collide with environment variables.
Upstream-commit: 2ad16c88e24ba87fea9f31209e663bfb9ada51a0
Component: engine
2014-03-12 22:24:00 +10:00
James Turnbull 83e2e667c9 Merge pull request #4143 from SvenDowideit/apt-cacher-example
Show some ENV / local updated baseimage tricks that use an apt-cacher-ng...
Upstream-commit: a5fa161ff8849a00d8e8806b6a65c70a9395d622
Component: engine
2014-03-12 08:20:42 -04:00
unclejack 19cf2cf9bd retry to retrieve metadata on failure during pull
This makes Docker retry to retrieve the JSON metadata for the layers.
Docker will make 5 attempts to retrieve the metadata before failing and
it will increase the delay between attempts after each failed attempt.

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Upstream-commit: 2cfcf42d50b469abfb0e13245726371d445b76e4
Component: engine
2014-03-12 14:05:43 +02:00
Sven Dowideit 41f81364c7 fixes suggested by James
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
Upstream-commit: 8bf63d532622e22070b92ee71dcb972ace4b9b40
Component: engine
2014-03-12 22:02:24 +10:00
Tianon Gravi c3a135a2b6 Exclude more "definitely not unit tested Go source code" directories from hack/make/test
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Upstream-commit: 99b6364790e59a70d57949792fa31014637c93ee
Component: engine
2014-03-12 01:18:12 -06:00
Tianon Gravi 6f72a528dc Clean up the "go test" output from "make test" to be much more readable/scannable
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Upstream-commit: e1c48fa56007e1db028f7f83bfbf79c3d05feccd
Component: engine
2014-03-12 01:17:38 -06:00
Ken ICHIKAWA a67771c164 Update daemon docs and help messages for --iptables and --ip-forward
Fix docs and help messages of --iptables and --ip-forward to describe the true case behaviour

Docker-DCO-1.1-Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com> (github: ichik1)
Upstream-commit: b7ae9984fb541e8b53d09016e78ff352ce310c25
Component: engine
2014-03-12 13:50:03 +09:00