Commit Graph
5081 Commits
Author SHA1 Message Date
Alexander Larsson 692e7bb3bd ApplyLayer: Fix TestLookupImage
The TestLookupImage test seems to use a layer that contains
/etc/postgres/postgres.conf, but not e.g. /etc/postgres.

To handle this we ensure that the parent directory always
exists, and if not we create it.
Upstream-commit: 78c22c24b353d77fdab3e1616d9986a8ae95a7c2
Component: engine
2013-12-16 14:35:43 +01:00
Alexander Larsson 7bf68dd3de Re-enable TestApplyLayer
With the previous two changes we now pass this test.
Upstream-commit: a8af12f80a4a1678988b4667e5211d4e576ce903
Component: engine
2013-12-13 15:50:25 +01:00
Alexander Larsson 51b58640b0 Fix change detection when applying tar layers
The default gnu tar format has no sub-second precision mtime support,
and the golang tar writer currently doesn't support that either.
This means if we export the changes from a container we will not
get zeron in the sub-second precision field when the change is applied.

This means we can't compare that to the original without getting a
spurious change. So, we detect this case by treating a case where the
seconds match and either of the two nanoseconds are zero as equal.
Upstream-commit: 10cd902f900392a2f10a6f8763bba70607ea0d41
Component: engine
2013-12-13 15:46:41 +01:00
Alexander Larsson e5d96fb523 archive: Implement ApplyLayer directly
Rather than calling out to tar we use the golang tar parser
to directly extract the tar files. This has two major advantages:

1) We're able to replace an existing directory with a file in the
   new layer. This currently breaks with the external tar, since
   it refuses to recursively remove the destination directory in
   this case, and there are no options to make it do that.

2) We avoid extracting the whiteout files just to later remove them.
Upstream-commit: 818c249bae8d29842834bf765299c86c09e6913e
Component: engine
2013-12-13 15:43:50 +01:00
Tianon Gravi 52ac1dad3b Merge pull request #3192 from unclejack/update_virtualbox_guest_additions
vagrant: update & verify virtualbox guest tools
Upstream-commit: 5a89c6f6dffdcaa4d24b331ca233afccebdf6cc4
Component: engine
2013-12-12 21:22:29 -08:00
Michael Crosby 5570b7b013 Merge pull request #3185 from vieux/job_tag
Move tag to job
Upstream-commit: 8224e13bd25a41c3e3d8755edd3a754cd060adee
Component: engine
2013-12-12 17:02:39 -08:00
Guillaume J. Charmes 2eae46daad Merge pull request #3015 from jpoimboe/dockerinit-libvirt-prereqs
dockerinit: drop capabilities
Upstream-commit: 912bf8ff92a684400f094e12ee69c68510ebd5b4
Component: engine
2013-12-12 15:49:21 -08:00
Victor Vieux 07befa45fc move tag to job
Upstream-commit: e43ff2f6f2630f971c9494aed285f1d410e42df9
Component: engine
2013-12-12 11:52:11 -08:00
Josh Poimboeuf 161e9b78f9 dockerinit: drop capabilities
Drop capabilities in dockerinit instead of with lxc utils, since
libvirt-lxc doesn't support it.

This will also be needed for machine container mode, since dockerinit
needs CAP_SYS_ADMIN to setup /dev/console correctly.
Upstream-commit: b8f1c7370516a4eec0d3168d594a7d7d92e7f8e9
Component: engine
2013-12-12 13:47:24 -06:00
Josh Poimboeuf a0c18beb35 dockerinit: refactor error handling
Upstream-commit: 1572989201cc54dc87d961fe9c5d6850c61d47b9
Component: engine
2013-12-12 13:47:24 -06:00
Josh Poimboeuf 22678e4bed dockerinit: put args in a struct
Upstream-commit: bd02d6e662fdf197665a92663854c629c4dda747
Component: engine
2013-12-12 13:47:23 -06:00
Andy Rothfusz 6c5256e4e3 Merge pull request #3190 from zain/master
Small typo fixes
Upstream-commit: 2d1f61ef0ec93539fd55f27cbd6f08ef0f0f33d2
Component: engine
2013-12-12 11:25:11 -08:00
Andy Rothfusz b89adb4dee Merge pull request #3189 from aknikitin/patch-1
Minor spelling fix
Upstream-commit: 54df95f26c8fcb9bf4f90974e98188f4142e82b4
Component: engine
2013-12-12 11:24:45 -08:00
Guillaume J. Charmes 8ac6f87f86 Merge pull request #3145 from vieux/fix_docker_images
multiple fixed in docker images
Upstream-commit: 5b33ae5971ae1071ba377ec1761956a05bf7b21e
Component: engine
2013-12-12 11:17:19 -08:00
unclejack a7508a8385 vagrant: update & verify virtualbox guest tools
Upstream-commit: f216448c823d1aa3dd661935d60da390d463039d
Component: engine
2013-12-12 13:03:33 +02:00
Zain Memon 641d703cbd Small typo fixes
Upstream-commit: f26a9d456ca267b0346077b98fc447b99319d8b9
Component: engine
2013-12-12 01:23:16 -08:00
Anton Nikitin 147d85142c Minor spelling fix
Upstream-commit: bf5b949ffc005127399db51f8f49c3c8cc4736bc
Component: engine
2013-12-12 01:09:24 -05:00
Victor Vieux e69094c61d Merge pull request #3184 from creack/fix-volumes-on-host
Fix volumes on host
Upstream-commit: 621523a04155401888b08265fbc1f51e7f7aeb10
Component: engine
2013-12-11 18:06:25 -08:00
Guillaume J. Charmes bf9ceb198b Improve FollowLink to handle recursive link and be more strick
Upstream-commit: 8fd9633a6bb136af6666626a76056b1592fef0c7
Component: engine
2013-12-11 17:19:02 -08:00
Victor Vieux 4c119b77b9 Merge pull request #3144 from codeaholics/643-stale-nfs-handle
Prevent deletion of image if ANY container is depending on it; not just running containers
Upstream-commit: 1124261158721f5db51b4da6ea77a7d3c51ff82a
Component: engine
2013-12-11 17:18:54 -08:00
Andy Rothfusz b0f69a4755 Merge pull request #3181 from lsm5/rhel-docs-typos
Rhel docs typos
Upstream-commit: b722f809e751dd33371c46e3fe63c63aea405724
Component: engine
2013-12-11 16:37:24 -08:00
Michael Crosby 19acae63e7 Fix volumes on the host by following symlinks in a scope
Upstream-commit: f396c42cad2b23dae5e3296c18fd6190f210c022
Component: engine
2013-12-11 16:31:02 -08:00
Lokesh Mandvekar 80136f3a4a keeping rhel page sorta in sync with fedora
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: 8874f2aef9ed12574160394fd7a6a254c0ef0526
Component: engine
2013-12-11 18:26:17 -06:00
Lokesh Mandvekar 8caad93e85 remove step numbers, keep consistent with fedora
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: e8ec3dba7b1eb9254a04c852ffe7d98d10d0d476
Component: engine
2013-12-11 18:21:52 -06:00
Andy Rothfusz a47c0933c1 Merge pull request #3177 from tianon/fix-turnbull-github
Fix James's github handle in docs/MAINTAINERS
Upstream-commit: 4eda2a54de9d1033d5be4925ae4aa6fb3b4508d9
Component: engine
2013-12-11 16:00:06 -08:00
Andy Rothfusz b20c07a32a Merge pull request #3176 from lsm5/rhel-docs
Rhel docs
Upstream-commit: d3292078dc501b8afc94c87554184789757586e7
Component: engine
2013-12-11 15:58:42 -08:00
Lokesh Mandvekar 256dcd7255 more typo corrections
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: 44984602c7c7460454531c22ee4dfab2a34fa334
Component: engine
2013-12-11 16:36:14 -06:00
Lokesh Mandvekar 51019ea44e some typo corrections
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: d534e1c3a1e00786d63e9dbeffceb6ab7f51c92b
Component: engine
2013-12-11 16:20:54 -06:00
Andy Rothfusz 1f4103a07d Merge pull request #3174 from richo/features/https_install_script
Use https to get the install script
Upstream-commit: d56d8ab96eff194619624a5b09749ebb960743ad
Component: engine
2013-12-11 14:09:22 -08:00
Andy Rothfusz ef604cf7d9 Merge pull request #3161 from SvenDowideit/make-replace-docker-binary-note-more-obvious
associate swapping the built docker binary with building the binary, rather than a note in building the docs
Upstream-commit: 6cf8ec606ee6826c65efe4275cd819002bacb9a5
Component: engine
2013-12-11 14:04:34 -08:00
Lokesh Mandvekar 18d434e8aa rhel page keywords update
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: db3019d50b7a38dd52d8ad959017c63b04f11462
Component: engine
2013-12-11 16:00:46 -06:00
Lokesh Mandvekar f68960fa0e rhel description update
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: 42c38bf34dff7a5af4c75646b7252d3ecbdd334a
Component: engine
2013-12-11 15:59:35 -06:00
Andy Rothfusz 851d8d4fe9 Merge pull request #3167 from qbrossard/patch-1
Corrected typo (resdis -> redis)
Upstream-commit: 11b3fbb3bdedfeb65ae002a6feaa336a7a8c7c5b
Component: engine
2013-12-11 13:57:59 -08:00
Andy Rothfusz 562bdffce3 Merge pull request #3165 from SvenDowideit/cmd-rmi-example
add example for docker rmi, and explain the need to remove all references (tags) to and image before its garbage collected :)
Upstream-commit: 036f41fde395d0f567b08996836aeb7e217729f3
Component: engine
2013-12-11 13:57:13 -08:00
Andy Rothfusz 958e22180f Merge pull request #3162 from SvenDowideit/docker-commit-example-change-CMD
add a direct example for changing the cmd that is run
Upstream-commit: 6e9c1590c6f992d76aa507233f059fc0d5d5bf4d
Component: engine
2013-12-11 13:52:12 -08:00
Tianon Gravi b98e3d0286 Fix James's github handle in docs/MAINTAINERS
Upstream-commit: 39cc8a32b1dcf6dcb9462fbc2768ae035e8095dc
Component: engine
2013-12-11 14:13:55 -07:00
Lokesh Mandvekar 17c7de8491 rhel page only for rhel
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: 31961ccd94bc2d0941d3062591206a58b3b451a1
Component: engine
2013-12-11 14:36:12 -06:00
Lokesh Mandvekar c55d5472f2 rhel docs update
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Upstream-commit: eec48f93a36873b8255c1c533b0d2bfbd742f9fa
Component: engine
2013-12-11 14:34:51 -06:00
Richo Healey a47c99e75e Use https to get the install script
Upstream-commit: 81fc368a6d70ef369bd16a3c090c6910851faacf
Component: engine
2013-12-11 11:27:36 -08:00
Michael Crosby d332e70646 Merge pull request #3153 from vieux/improve_docker_push_display
Update docker push to use new display
Upstream-commit: bd292759f03688cfa22f885572cae6e5cbfc4d77
Component: engine
2013-12-11 11:11:53 -08:00
Michael Crosby 5cde259caa Merge pull request #2735 from shykes/engine-job-kill
New engine command: 'kill'
Upstream-commit: 5fd3c8204de3a8188097add6a75ca70536e1375a
Component: engine
2013-12-11 10:35:57 -08:00
Quentin Brossard 8abc4cd131 Corrected typo (resdis -> redis)
Upstream-commit: af21908493e570a1399bbd462803398ef34e56bc
Component: engine
2013-12-11 13:15:27 +01:00
Sven Dowideit 288950b62c add example for docker rmi, and explain the need to remove all references (tags) to and image before its garbage collected :)
Upstream-commit: 7edd1f6bad752dd89eeaa3690e219dfa748afa9c
Component: engine
2013-12-11 15:54:34 +10:00
Sven Dowideit 923bfddec3 add a direct example for changing the cmd that is run
Upstream-commit: d878632b2548247fc9e4c2da1b2520e4c7b9420a
Component: engine
2013-12-11 12:07:07 +10:00
Sven Dowideit baafd9623d associate swapping the built docker binary with building the binary, rather than a note in building the docs
Upstream-commit: be137350018608bf4a1fd01ce956f166c39988c4
Component: engine
2013-12-11 11:12:11 +10:00
Andy Rothfusz 1e4a06b36d Merge pull request #3159 from SvenDowideit/make-docs-consistency
Makefile: make docs is more consistent
Upstream-commit: fb9ddc5de5477a88c236963e5ac4dc6f054115ff
Component: engine
2013-12-10 16:51:35 -08:00
Sven Dowideit 0675a87be6 make docs is more consistent
Upstream-commit: 27646c445951b47a728675764d7ef2b198436156
Component: engine
2013-12-11 10:14:56 +10:00
Victor Vieux 56c52707db revert 'firstErr'
Upstream-commit: b98d51dddb081e4bf4f54cbc9c48ef123c2254d0
Component: engine
2013-12-10 15:37:03 -08:00
Victor Vieux f1ea4ce449 Merge pull request #3113 from shykes/engine-export
Move 'docker export' to the engine API
Upstream-commit: 0025e9bd719b1cd8314543019ed8e6f6bc5c57cd
Component: engine
2013-12-10 13:28:24 -08:00
Victor Vieux fd1ce5d46b Merge pull request #3152 from daniel-garcia/3129_dont-open-bindmounted-files
don't open bind mounted files/dirs to get Stat, use os.Lstat
Upstream-commit: 4c6e528f13a13f3e9d62f56db5605e6c7f088869
Component: engine
2013-12-10 11:05:39 -08:00