Commit Graph

17000 Commits

Author SHA1 Message Date
2cfd978e65 Fix container register failed during daemon start and try to start the container
Signed-off-by: Lei Jitang <leijitang@huawei.com>
Upstream-commit: b4841dd2371cdab8ef6e01d8304622fdb3578644
Component: engine
2015-09-13 22:52:56 -04:00
fd5f304706 Fix typo in ROADMAP.md
Signed-off-by: David Gageot <david@gageot.net>
Upstream-commit: 02e18c9ab31cbb7033ec6efebc12274cd7b50e62
Component: engine
2015-09-12 11:27:46 +02:00
f294888a6f Merge pull request #16100 from ZJU-SEL/fix-document-about-vol
fix doc about vol
Upstream-commit: 9d0954a83d6c7b52287a62f8ab7ad42d544322a0
Component: engine
2015-09-12 02:50:49 +02:00
862065b3b2 Add log reading to the journald log driver
If a logdriver doesn't register a callback function to validate log
options, it won't be usable.  Fix the journald driver by adding a dummy
validator.

Teach the client and the daemon's "logs" logic that the server can also
supply "logs" data via the "journald" driver.  Update documentation and
tests that depend on error messages.

Add support for reading log data from the systemd journal to the
journald log driver.  The internal logic uses a goroutine to scan the
journal for matching entries after any specified cutoff time, formats
the messages from those entries as JSONLog messages, and stuffs the
results down a pipe whose reading end we hand back to the caller.

If we are missing any of the 'linux', 'cgo', or 'journald' build tags,
however, we don't implement a reader, so the 'logs' endpoint will still
return an error.

Make the necessary changes to the build setup to ensure that support for
reading container logs from the systemd journal is built.

Rename the Jmap member of the journald logdriver's struct to "vars" to
make it non-public, and to make it easier to tell that it's just there
to hold additional variable values that we want journald to record along
with log data that we're sending to it.

In the client, don't assume that we know which logdrivers the server
implements, and remove the check that looks at the server.  It's
redundant because the server already knows, and the check also makes
using older clients with newer servers (which may have new logdrivers in
them) unnecessarily hard.

When we try to "logs" and have to report that the container's logdriver
doesn't support reading, send the error message through the
might-be-a-multiplexer so that clients which are expecting multiplexed
data will be able to properly display the error, instead of tripping
over the data and printing a less helpful "Unrecognized input header"
error.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> (github: nalind)
Upstream-commit: e611a189cb3147cd79ccabfe8ba61ae3e3e28459
Component: engine
2015-09-11 16:50:03 -04:00
b62f71beed Merge pull request #16231 from jfrazelle/vendor-test-deps
allow vendoring of test packages
Upstream-commit: 6f15546f6be017225f5cf428a61b9a0fd7014e6a
Component: engine
2015-09-11 13:47:03 -07:00
70714f6d99 Merge pull request #16243 from LK4D4/fix_import
awslogs: fix logrus import
Upstream-commit: 9fbef808c1f44560b24b7c9a7dc68f8e8ff480b9
Component: engine
2015-09-11 12:46:57 -07:00
d81a719c8c Merge pull request #15955 from aaronlehmann/parallel-pull-race-2
Fix race condition when waiting for a concurrent layer pull
Upstream-commit: c044dadadea5b13bb0216321c79f51c4f8d44c09
Component: engine
2015-09-11 12:45:25 -07:00
09e7de5c85 Merge pull request #14973 from mrjana/up
Make daemon to start with no userlandproxy by default
Upstream-commit: f9320690d9d012aaf208e707806b950fc6da91bf
Component: engine
2015-09-11 12:39:04 -07:00
68a732e052 Make daemon to start with no userlandproxy by default
This PR makes a user visible behavior change with userland
proxy disabled by default and rely on hairpin NAT to be enabled
by default. This may not work in older (unsupported) kernels
where the user will be forced to enable userlandproxy if needed.

      - Updated the Docs
      - Changed the integration-cli to start with userlandproxy
	desiabled by default.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
Upstream-commit: bf2b8ec8165468d7454f6bd86f4a78e7e8b58d8e
Component: engine
2015-09-11 11:58:35 -07:00
726b8dc951 awslogs: fix logrus import
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: 32964def832f76f29991100c76af09513de19693
Component: engine
2015-09-11 11:05:06 -07:00
3ef5fa238d Merge pull request #16240 from Microsoft/10662-stopsignal
Windows: Nice error on stopsignal
Upstream-commit: ec6d91ce434c0cb2fa87504215b7a6a15fb02d3a
Component: engine
2015-09-11 11:00:12 -07:00
469c5478aa Make Broadcaster Wait function wait for all writers to finish before returning
Also, use the channel to determine if the broadcaster is closed,
removing the redundant isClosed variable.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 4a5d40fdb7896282a1d8b4069a8384ff0af40bed
Component: engine
2015-09-11 10:54:40 -07:00
189e37d591 Remove io.Pipe used for download progress
The original purpose of this was to cancel downloads if pullV2Tag
returns an error, preventing an associated crash (see #15353). The
broadcaster now accomplishes the same thing that the pipe does, making
the pipe redundant. When pullV2Tag returns, all broadcasters are closed,
which means all further writes to those broadcasters will return errors.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 50c355777e31c08d3a97ec70b67bbe5a3bc883af
Component: engine
2015-09-11 10:54:40 -07:00
0534c3bd2c Fix races accessing d.poolKey and d.tmpFile when pullV2Tag returns
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 64faec8269f33be3ac3f3a80322a619668bcb9d5
Component: engine
2015-09-11 10:54:35 -07:00
c3a694b001 Merge pull request #16215 from HuKeping/save
Refactor CLI docker save
Upstream-commit: bc48194ded4892d277345e45defee66a24f36399
Component: engine
2015-09-11 13:52:59 -04:00
e7b8d5068c Fix race condition when waiting for a concurrent layer pull
Before, this only waited for the download to complete. There was no
guarantee that the layer had been registered in the graph and was ready
use. This is especially problematic with v2 pulls, which wait for all
downloads before extracting layers.

Change Broadcaster to allow an error value to be propagated from Close
to the waiters.

Make the wait stop when the extraction is finished, rather than just the
download.

This also fixes v2 layer downloads to prefix the pool key with "layer:"
instead of "img:". "img:" is the wrong prefix, because this is what v1
uses for entire images. A v1 pull waiting for one of these operations to
finish would only wait for that particular layer, not all its
dependencies.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 23e68679f080fee7ceb25cf791832f523a3a024a
Component: engine
2015-09-11 10:52:34 -07:00
15c37f9e38 Merge pull request #16194 from yosifkit/fix-nuke
Fix nuke script
Upstream-commit: f9e5a693ed831870998b270dbdb7a4655a4fb356
Component: engine
2015-09-11 10:26:22 -07:00
128f497a4a Merge pull request #16026 from vdemeester/integration-cli-utils-tests
Add unit tests for integration cli utils.go functions
Upstream-commit: 335689118bfb0451885221a9706d01c7d3c2bda6
Component: engine
2015-09-11 10:21:09 -07:00
648a4ae80b Merge pull request #16224 from jfrazelle/no-release-dirty
do not allow the release of a dirty binary
Upstream-commit: dc1cc46348548d46dc1c307d3baf11249cbd490e
Component: engine
2015-09-11 10:08:55 -07:00
81f0877adb Windows: Nice error on stopsignal
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 8de7fcaf7e9b0c6e99ddd09021e8a746a68a8e63
Component: engine
2015-09-11 09:40:23 -07:00
811680bcf5 Merge pull request #15307 from calavera/stop_signal
Signal to stop a container.
Upstream-commit: db54c79d7cd4ca055f9a1ddf4198cdcba9eb7d46
Component: engine
2015-09-11 09:25:18 -07:00
b7b1e671cd Refactor CLI docker save
Signed-off-by: Hu Keping <hukeping@huawei.com>
Upstream-commit: 22be1e443fa49bafd6aa3ab6c1eb0595fd9fb2b1
Component: engine
2015-09-11 15:31:55 +08:00
665a3fd69c Merge pull request #16226 from aaronlehmann/broadcaster-catch-up
Broadcaster writer goroutines must only finish when they are caught up
Upstream-commit: 7064fe283f1d63785f2812b8a23c8b4d80b58178
Component: engine
2015-09-10 22:55:44 -04:00
f85db4289c fix doc about vol
Signed-off-by: xlgao-zju <xlgao@zju.edu.cn>
Upstream-commit: af14c6e7aa369ebca640ccb0197f9afbfd2e749a
Component: engine
2015-09-11 10:49:39 +08:00
fe3f11e9c6 allow vendoring of test packages
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Upstream-commit: 1ca88b2ca6c736cba8a30b2f64a347d7f9fa7d69
Component: engine
2015-09-10 19:21:46 -07:00
1e38e54eff Add STOPSIGNAL instruction to dockerfiles.
This way, images creators can set the exit signal their programs use.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 3781cde61ff10b1d9114ae5b4c5c1d1b2c20a1ee
Component: engine
2015-09-10 19:56:05 -04:00
d563cc164c Signal to stop a container.
Allow to set the signal to stop a container in `docker run`:
- Use `--stop-signal` with docker-run to set the default signal the container will use to exit.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 0e50d946a25beb134bce2aaf4a209b5cfcbacf8f
Component: engine
2015-09-10 19:56:05 -04:00
0744d7a97a Merge pull request #13185 from NOX73/10139-tags-list-get-image-api
Added tags list to /images/:id/json api.
Upstream-commit: bb1996ab8f6b3d4af66abd3bb62754e30908530c
Component: engine
2015-09-10 16:40:44 -07:00
b0cc871982 Broadcaster writer goroutines must only finish when they are caught up
Without this change, there was a narrow race condition that would allow
writers to finish when there was still data left to write. This is
likely to be what was causing some integration tests to fail with
truncated pull output.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 947519bfb31024ea8c76e8e303f2c338b00265f2
Component: engine
2015-09-10 14:58:06 -07:00
80380437cf do not allow the release of a dirty binary
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Upstream-commit: b18d664692f4a2c15e4e62697547f9238193a493
Component: engine
2015-09-10 12:28:09 -07:00
f9ba04b455 Merge pull request #16191 from runcom/daemon-remove-unused-function-params
daemon: remove unused function params
Upstream-commit: 65e43593f58b2eb0666a0cc90609aa3f56c6af6a
Component: engine
2015-09-10 10:23:52 -07:00
12562031e9 Merge pull request #16086 from cezarsa/full_stack_dump
Ensure goroutines dump is not truncated
Upstream-commit: c8dc729af41f8b10ea4cc42e1ae12b0966e66e1d
Component: engine
2015-09-10 11:16:28 -04:00
353e9fa1d4 Merge pull request #16104 from vdemeester/httputils-withmock
Update httputils tests
Upstream-commit: 08a2e475bc4d012e5eac43ea4556753ad16354b1
Component: engine
2015-09-10 11:00:17 -04:00
8487254d2a Merge pull request #16213 from HuKeping/minor
Minor typo
Upstream-commit: 727f083a378588ab2ee7d68c2747ffbd0cd1c721
Component: engine
2015-09-10 09:55:49 -04:00
9f56a7069d Added tags list to /images/:id/json api.
It closes #10139.

Signed-off-by: Rozhnov Alexandr <nox73@ya.ru>
Upstream-commit: e9e68fa2d29a5e3053fb876b19b5ac5bc6d1c222
Component: engine
2015-09-10 11:55:01 +03:00
e5d596c8b2 Minor typo
Signed-off-by: Hu Keping <hukeping@huawei.com>
Upstream-commit: 40d3ce1063a4dabfb1634a4f0739dea05b63a344
Component: engine
2015-09-10 14:13:15 +08:00
a90d6930ab Remove stray please
Signed-off-by: Trevor <trevinwoodstock@gmail.com>
Upstream-commit: 012bdac6d68f006351e43b11b258259f4af26e20
Component: engine
2015-09-09 21:21:23 -04:00
da795b0534 Merge pull request #15953 from duglin/DaemonContext
Add a "context" to the api/server/* code
Upstream-commit: 6efe45990d7d50940b8c070be7b45b7a7399d327
Component: engine
2015-09-09 17:28:38 -07:00
b09dc49663 Merge pull request #15495 from samuelkarp/awslogs-logging-driver
Add awslogs driver for Amazon CloudWatch Logs
Upstream-commit: 9f517fc5bb95758d66a0c9d48ae9ece202352948
Component: engine
2015-09-09 17:19:39 -07:00
4eee792b71 Merge pull request #16023 from mikebrow/12854-update-irc-webpage
refresh where to chat page; and add IRCCloud to IRC Quickstart
Upstream-commit: 8855bf350026a27a6615fa057d176b28715d77d5
Component: engine
2015-09-09 17:14:28 -07:00
0199cb8013 Merge pull request #16188 from albers/docs-volume-help
Update docs and man pages for `docker volume` subcommands
Upstream-commit: b154a6f68eb289125117d8be5bcefaa508e79dca
Component: engine
2015-09-09 17:13:21 -07:00
27754298e2 Fix nuke script to remove from end of path
Signed-off-by: Joe Ferguson <joe@infosiftr.com>
Upstream-commit: d2e9f6c0c1d2f6a88316198778515fe098d02dec
Component: engine
2015-09-09 15:34:05 -07:00
dbaa3ef518 Merge pull request #16192 from anusha-ragunathan/dev
Updated rpm spec to perform cleaner installs
Upstream-commit: 72f355e466447f1bee4f9cc8bcab98f8b1560396
Component: engine
2015-09-09 15:26:36 -07:00
9ec0a0380f Move context stuff to its own package
Signed-off-by: Doug Davis <dug@us.ibm.com>
Upstream-commit: f790496d8bd0930d7b1bc4adf120ae5ef169a958
Component: engine
2015-09-09 14:23:25 -07:00
f022abdae0 Updated rpm spec to perform cleaner installs
Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: 1caa9a7d162be26e2560481b917d1592f724316c
Component: engine
2015-09-09 17:13:57 -04:00
56082f8faa Add awslogs driver for Amazon CloudWatch Logs
Signed-off-by: Samuel Karp <skarp@amazon.com>
Upstream-commit: 3effe484e6f572298d0c3490517f57391617aa51
Component: engine
2015-09-09 13:52:40 -07:00
84efd65be4 Vendor AWS Go SDK
Signed-off-by: Samuel Karp <skarp@amazon.com>
Upstream-commit: 85433365cc4e16a50e29aacb8de5872c64496d4f
Component: engine
2015-09-09 13:51:14 -07:00
2ced70f4fb daemon: remove unused function params
Signed-off-by: Antonio Murdaca <runcom@linux.com>
Upstream-commit: 587823af2723801ffdb6841b6e2c3d7d73ff10db
Component: engine
2015-09-09 22:37:46 +02:00
5e00b6c763 Merge pull request #14626 from kunalkushwaha/add-network-cli-help
"docker network" missing from docker --help
Upstream-commit: a796ac53185c2827017843fec21e02aba88f6ace
Component: engine
2015-09-09 13:36:43 -07:00
5f65695cc8 addressing useability comments per @moxiegirl
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
Upstream-commit: 82fce531031d9974013390ead67456d39fb070e9
Component: engine
2015-09-09 14:59:30 -05:00