Commit Graph

30371 Commits

Author SHA1 Message Date
ae5b65a856 Merge pull request #30208 from justincormack/no-sqlite
Remove sqlite dependency
Upstream-commit: 0e8c7d72771847227df295471ac73180cbb3caa9
Component: engine
2017-01-18 13:15:38 -05:00
898356a3e3 Merge pull request #30185 from vdemeester/integration-build-cmd-cleanup-take2
[test-integration] Clean more build utils
Upstream-commit: e1c5e72902f1ec020fd7e179846d1faf06b281c6
Component: engine
2017-01-18 15:12:03 +01:00
140c56ac38 Merge pull request #28925 from daehyeok/ineffassign
Refactoring ineffectual assignments
Upstream-commit: 5eda0c59477a7364878351c3d311cd3a4c6dd28d
Component: engine
2017-01-18 15:01:57 +01:00
ecfeb35159 Remove sqlite
This drops support for migrations from pre-1.10 Docker versions, which
should be done via an external tool or an intermediate upgrade.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Upstream-commit: f8119bb7a76b5c42defb6e0a2dc67bd77ad29a5e
Component: engine
2017-01-18 12:27:21 +00:00
52b418218f Merge pull request #30041 from stevvooe/tips-for-successful-changes
CONTRIBUTING: add tips for succesful changes
Upstream-commit: 8bc7e193464b5b59a2019a4a429a48526f71bc40
Component: engine
2017-01-18 10:00:15 +01:00
9bc1ef59e1 Merge pull request #30230 from stupendous-man/fix-typos
Fixed a typo within pkg/authorization/api.go
Upstream-commit: 30ca9e3b0cfedddfe259c2d84a658b1eedc2cce1
Component: engine
2017-01-18 14:23:03 +09:00
9f4fb79889 Merge pull request #30215 from WeiZhang555/fix-go-vet
Fix escaped go vet error
Upstream-commit: d3245371176735763b0ef8a63609432586cdee3e
Component: engine
2017-01-18 12:48:22 +09:00
b1d58a6a62 Fixed a typo within pkg/authorization/api.go
Signed-off-by: Diego Romero <idiegoromero@gmail.com>
Upstream-commit: 48b8f54876ff3269db46443eb91adeab2ea8b74b
Component: engine
2017-01-17 21:51:16 -05:00
4173ac21ae Merge pull request #30219 from tonistiigi/test-port-leak
Switch TestSwarmPublishDuplicatePorts to different ports
Upstream-commit: 56b951fbe526eeacaca434dbbabb59b07d3ba13e
Component: engine
2017-01-17 17:16:14 -08:00
67499ab5ac Merge pull request #29076 from justincormack/seccomp-socket-to-them
Block obsolete and unusual socket families in the default seccomp profile
Upstream-commit: 48184351c938904236998b0f435f2dbc2a2c19f3
Component: engine
2017-01-18 01:53:17 +01:00
1a7bfab5ef Merge pull request #30220 from ehazlett/fix-log-import
Remove cloudflare log import
Upstream-commit: 2169723538224563f998e002eef73377f007ad07
Component: engine
2017-01-17 14:21:36 -08:00
37ae130be7 Merge pull request #30212 from thaJeztah/here-come-the-captains
Welcome the captains :-)
Upstream-commit: 645bdc22ec120a6fb51bf74c8804536b0f7c7b55
Component: engine
2017-01-17 13:54:01 -08:00
dd7c3086b8 CONTRIBUTING: add tips for succesful changes
Expand the contributing doc to include tips for successful PRs and
guidance on commit messages. This should help contributers to have
better position PRs that are more likely to be merged.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: 59e1d579e09b56cd909655fdefb405f0eb02b086
Component: engine
2017-01-17 13:15:26 -08:00
dad6f7464f fix log import
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Upstream-commit: e221b74bd192c83fe97c7581a135a7417cbc318c
Component: engine
2017-01-17 14:20:54 -05:00
85210563e9 Switch TestSwarmPublishDuplicatePorts to different ports
There is an issue with the ports leaking to other tests.
This is a workaround until the actual problem is addressed.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 24cd5444f982fd295248006f44c6ec2f4ab7f1f8
Component: engine
2017-01-17 10:54:22 -08:00
c28bd5178d Merge pull request #29965 from yongtang/29946-networks-api
Return `[]` instead of `null` in case `filterNetworks` returns empty
Upstream-commit: f19a293dd741583c66001799435f784f2af455e0
Component: engine
2017-01-17 18:58:35 +01:00
9c9701a340 Block obsolete socket families in the default seccomp profile
Linux supports many obsolete address families, which are usually available in
common distro kernels, but they are less likely to be properly audited and
may have security issues

This blocks all socket families in the socket (and socketcall where applicable) syscall
except
- AF_UNIX - Unix domain sockets
- AF_INET - IPv4
- AF_INET6 - IPv6
- AF_NETLINK - Netlink sockets for communicating with the ekrnel
- AF_PACKET - raw sockets, which are only allowed with CAP_NET_RAW

All other socket families are blocked, including Appletalk (native, not
over IP), IPX (remember that!), VSOCK and HVSOCK, which should not generally
be used in containers, etc.

Note that users can of course provide a profile per container or in the daemon
config if they have unusual use cases that require these.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Upstream-commit: 7e3a596a63fd8d0ab958132901b6ded81f8b44c0
Component: engine
2017-01-17 17:50:44 +00:00
93133ecc78 Merge pull request #29930 from Microsoft/jjh/envdocs
Docs: Refresh run.md ENV paragraphs
Upstream-commit: 74bebcc1409e8bd5c37b2a116f4cecaea091d3ce
Component: engine
2017-01-17 18:03:08 +01:00
905b5b1fe9 Fix escaped go vet error
Find one escaped go vet error:

```
$ cd pkg/httputils/
$ go vet .
httputils_test.go:28: arg response for printf verb %q of wrong type:
*net/http.Response
```

You can also find it with

```
$ go vet github.com/docker/docker/pkg/httputils/
```

or

```
$ go vet ./...
```

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Upstream-commit: 3551893f46316388add55ab7421e9614d85dc52e
Component: engine
2017-01-18 00:13:09 +08:00
103852ed51 Merge pull request #29759 from allencloud/purify-error-message-for-create-and-run
purify error message in cli for create and run command
Upstream-commit: 96815a7dc4a117d36ff3294c651b2384467c4024
Component: engine
2017-01-17 16:53:51 +01:00
24c705729b Merge pull request #30209 from WeiZhang555/add-build-args-for-rpmbuild
Add missing ${DOCKER_BUILD_ARGS}
Upstream-commit: f63d1a6eec4771082bea86dfde013468dcca83f8
Component: engine
2017-01-17 15:52:10 +01:00
bdb483e4e4 Clean more build utils in integration cli
- Remove deprecated buildImage* functions
- Rename buildImageNew to buildImage
- Use *check.C in fakeContext* setup and in getIdByName

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: c10f6ef43f884306eb3ef60b2d19fdc931cf34cc
Component: engine
2017-01-17 15:42:38 +01:00
051c1a4e96 daemon: remove graphdb usage
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: b0f9958d932b52b94014eaf4148e6d103573cbfe
Component: engine
2017-01-17 13:52:48 +00:00
eec9aeaf16 Merge pull request #30094 from miaoyq/complete-opt-for-plugin-install
Complete the options for 'docker plugin install'
Upstream-commit: 8c7651998fcb41a73480f90aebe3ffadcb020d02
Component: engine
2017-01-17 14:40:31 +01:00
c052aabd0e Merge pull request #30138 from vdemeester/integration-use-testenv
[test-integration] Use testEnv methods and remove most of the global variables
Upstream-commit: 4fdfcb36cd6ab3bdf78be522f43c0c2a2bd5c898
Component: engine
2017-01-17 14:31:49 +01:00
1e06c3581d Merge pull request #29329 from thaJeztah/fix-fqdn-hostname
Add test for fqdn hostname not being set in container
Upstream-commit: 8518965d184ad82487e3513b57d8e6694b736d7f
Component: engine
2017-01-17 14:31:29 +01:00
21958a04e9 Add new curators to MAINTAINERS
The Docker Captains are going to assist in our
triage process! \o/ \o/

This change adds the captains to the maintainers
file as a curator.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 57de634bf3d616cc7a4e89060a6e36105bfa5745
Component: engine
2017-01-17 14:31:24 +01:00
3b675a4101 Add missing ${DOCKER_BUILD_ARGS}
Add missing "${DOCKER_BUILD_ARGS}" for building rpm with `docker build`,
this is quite important when running `make rpm` behind http proxy.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Upstream-commit: 062ce13e9cc6a9eb8ea8ae6333ff1dcc915572c4
Component: engine
2017-01-17 20:10:48 +08:00
f7b8e381ec Use testEnv methods and remove most of the global variables
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: c8016e669f9507480745a441ba4cd735150ebb85
Component: engine
2017-01-17 12:39:08 +01:00
d22f6cdf4e Merge pull request #30200 from albers/completion-build--squash
Add bash completion for `build --squash`
Upstream-commit: 9ebb90883e0ea981d6341537dc9f2b1451eda6cb
Component: engine
2017-01-17 12:07:00 +01:00
a6532984af add integration test for FQDN hostname
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 950792dc6d26b6ec6d62579ada57570acedcd0ee
Component: engine
2017-01-17 11:01:59 +01:00
2351cc0042 purify error message in cli for create and run command
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 3f1feaf4d66a7a8770a0eab4356106be2a18aacb
Component: engine
2017-01-17 17:21:17 +08:00
7ef3e12aec Merge pull request #30204 from YuPengZTE/devSem
fix the bare url and the Summary of http://semver.org
Upstream-commit: 05378f4898df21ea7cf11a9906afab91c79f1e51
Component: engine
2017-01-17 10:04:33 +01:00
ebded88db1 fix the bare url and the Summary of http://semver.org
Signed-off-by: yupengzte <yupeng36@zte.com.cn>
Upstream-commit: 1f925d1d5cd4b6501ee67b04823f89625c664c29
Component: engine
2017-01-17 16:20:11 +08:00
a44db0ca35 Add bash completion for build --squash
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e91dbba7ff62a92bd395bc419f522fa66618ae7b
Component: engine
2017-01-17 08:52:18 +01:00
ffb1102793 Merge pull request #30181 from albers/completion--filter-until
Add bash completion for `container|image|network prune --filter until`
Upstream-commit: a7c3389a8223449ed72d796b33a667e603811db8
Component: engine
2017-01-16 08:47:34 -08:00
a55818daf9 Merge pull request #30113 from thaJeztah/fix-autoremove-on-older-api
Don't use AutoRemove on older daemons
Upstream-commit: e74623d283111dc6492b1a97a8299a9377794b99
Component: engine
2017-01-16 08:40:00 -05:00
2292a0956f Add bash completion for container|image|network prune --filter until
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 217786423cfab26b4d7370f5cc1f4da9f4ca3c1e
Component: engine
2017-01-16 10:47:52 +01:00
58253ac5ca Merge pull request #30058 from vdemeester/integration-build-cmd-clean
[test-integration] clean docker_cli_build_test.go
Upstream-commit: dcf1264f1cbf4c5af7450357fad027c9a910808d
Component: engine
2017-01-16 18:16:49 +09:00
485690f98a Merge pull request #30163 from albers/completion-fix-hide-legacy-commands
Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Upstream-commit: fd0ea7693143b1eecf3c6bba52e091f3f793af99
Component: engine
2017-01-16 10:01:44 +01:00
9f48176b5c Merge pull request #30151 from tonistiigi/fix-defunct
Avoid defunct registry/notary processes during tests
Upstream-commit: ead8ce2431988170b8c89dbd8053d1824e9a919d
Component: engine
2017-01-16 08:55:16 +01:00
b41bc838ac Merge pull request #30140 from mlaventure/remove-fifo-timeout
Remove timeout on fifos opening
Upstream-commit: 582c5b76529b8ae36be038df814ceaded697de14
Component: engine
2017-01-15 22:47:30 +01:00
ad5a24f0ae Merge pull request #28690 from zteBill/volume-errorinfo-inexact
repeated volume create information
Upstream-commit: fa4f09194f7dd6687ac073f51ab344de2f165071
Component: engine
2017-01-15 17:10:27 +01:00
93d29be66d Refactor docker_cli_build_test.go
Use `testutil/cmd` for `buildCommand`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: c778f4b964934aeaf0d86d79ea7397940b303238
Component: engine
2017-01-15 16:48:08 +01:00
5b63ac99e9 Merge pull request #30143 from tophj-ibm/multi-get-go-from-own-dockerfile
[multi-arch] get go version from arch dockerfile
Upstream-commit: 96f7cf254babd715bb675d36d26d246f520c710a
Component: engine
2017-01-15 15:47:55 +01:00
474b446ade Merge pull request #30169 from runcom/fix-quoting
image: tarexport: do not quote integers in format string
Upstream-commit: 957a77f2e2c3c0b507b9a7152a37fec408336f11
Component: engine
2017-01-15 15:47:34 +01:00
c249c5ced8 Don't use AutoRemove on older daemons
Docker 1.13 moves the `--rm` flag to the daemon,
through an AutoRemove option in HostConfig.

When using API 1.24 and under, AutoRemove should not be
used, even if the daemon is version 1.13 or above and
"supports" this feature.

This patch fixes a situation where an 1.13 client,
talking to an 1.13 daemon, but using the 1.24 API
version, still set the AutoRemove property.

As a result, both the client _and_ the daemon
were attempting to remove the container, resulting
in an error:

    ERRO[0000] error removing container: Error response from daemon:
    removal of container ce0976ad22495c7cbe9487752ea32721a282164862db036b2f3377bd07461c3a
    is already in progress

In addition, the validation of conflicting options
is moved from `docker run` to `opts.parse()`, so
that conflicting options are also detected when
running `docker create` and `docker start` separately.

To resolve the issue, the `AutoRemove` option is now
always set to `false` both by the client and the
daemon, if API version 1.24 or under is used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 0ea7b143b0a8366799c83a955be676aaf1345214
Component: engine
2017-01-15 01:59:57 +01:00
58316308f8 Merge pull request #29831 from vdemeester/integration-small-cleanups
[test-integration] Small cleanups on integration cli
Upstream-commit: 24c4226dc7675e114463654f138e00a229b73a02
Component: engine
2017-01-14 16:43:39 -05:00
848651eae6 Merge pull request #29902 from caervs/add_autorestart
Add on-failure to default restart policy
Upstream-commit: 0fcd55072b0199db5f24be66ff92ce6c0e771e01
Component: engine
2017-01-14 16:40:02 -05:00
fed9eaa59d Merge pull request #29856 from Microsoft/jjh/warntoout
Windows to Linux build warning to stdout
Upstream-commit: 7d24cc7710f49f1f3caadf15d9eddb7e3b7a5f0d
Component: engine
2017-01-14 16:37:31 -05:00