GordonTheTurtle
0fed403b92
Merge component 'cli' from git@github.com:docker/cli 18.09
2018-09-22 00:36:57 +00:00
Tibor Vass
f3dec68e23
builder: vendor buildkit to 39404586a50d1b9d0fb1c578cf0f4de7bdb7afe5
...
Signed-off-by: Tibor Vass <tibor@docker.com >
(cherry picked from commit d0f00bc1fb2c349ad72ecc2394b8474937de84dd)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: 3d67dd046539f8e04db82ce07ea56f97b832676b
Component: engine
2018-09-21 17:06:25 -07:00
Tibor Vass
4f76283213
builder: use buildkit's GC for build cache
...
This allows users to configure the buildkit GC.
The following enables the default GC:
```
{
"builder": {
"gc": {
"enabled": true
}
}
}
```
The default GC policy has a simple config:
```
{
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "30GB"
}
}
}
```
A custom GC policy can be used instead by specifying a list of cache prune rules:
```
{
"builder": {
"gc": {
"enabled": true,
"policy": [
{"keepStorage": "512MB", "filter": ["unused-for=1400h"]]},
{"keepStorage": "30GB", "all": true}
]
}
}
}
```
Signed-off-by: Tibor Vass <tibor@docker.com >
(cherry picked from commit 4a776d0ca76c4bdf4399aef8c102361d6c2819eb)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: 73e2f72a7c5bd6d6f8306e0ffe4371e1c3b00a21
Component: engine
2018-09-21 17:06:25 -07:00
Anda Xu
dc48089436
add support of registry-mirrors and insecure-registries to buildkit
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
(cherry picked from commit 171d51c861b479af8798fbe7c51906bcecdffea0)
(cherry picked from commit a72752b2f74467333b4ebe21c6c474eb0c2b99e0)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: 2926a45be6b9315d2ddeec27d1193278b6bbae91
Component: engine
2018-09-21 17:06:25 -07:00
Anda Xu
b69d4cb4ec
update vendor
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
(cherry picked from commit 308701fac6f716160283ca0868da59aba2ea7eb5)
(cherry picked from commit b48afc216f46c8e786560b807528699012e1627b)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: b73fd4d936864998451cdd37f45694541e43006e
Component: engine
2018-09-21 17:06:25 -07:00
Tibor Vass
248d11e3f9
daemon/images: removed "found leaked image layer" warning, because it is expected now with buildkit
...
Signed-off-by: Tibor Vass <tibor@docker.com >
(cherry picked from commit 5aa222d0fe5a420dae96be0c04a33308823e0d0f)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: bb2adc4496f2fd1b755fc701dbed5dab33175efd
Component: engine
2018-09-21 17:06:25 -07:00
Tonis Tiigi
ff79736ce2
vendor: update bolt to bbolt
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: b501aa82d5151b8af73d6670772cc4e8ba94765f
Component: engine
2018-09-21 17:06:25 -07:00
Tonis Tiigi
a4444691f3
vendor: add bbolt v1.3.1-etcd.8
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Upstream-commit: 46a703bb3bfe75e99de2cc457dc0d568a1976a6b
Component: engine
2018-09-21 17:06:25 -07:00
docker-unir[bot]
61bc572a6e
Merge pull request #235 from seemethere/backport_f
...
Merged with https://github.com/seemethere/unir
Upstream-commit: 4d3c344a28c3105f9698ed3ae5213e85188eca97
Component: packaging
2018-09-21 22:20:55 +00:00
Andrew Hsu
0cc0272882
Merge pull request #1381 from dhiltgen/revamp_18.09
...
[18.09] `docker engine` updates
Upstream-commit: 19e1ab273e
Component: cli
2018-09-21 15:12:54 -07:00
Eli Uriegas
edf7125231
Use image artifacts as daemon and dependencies
...
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
(cherry picked from commit 944fa7137c02ec56907b26fccfd3a363cd741890)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
Upstream-commit: 6a66a0b6aee6ad2c9c52da728d1e70ce46fec017
Component: packaging
2018-09-21 22:10:36 +00:00
Eli Uriegas
8da1ad1c75
Merge pull request #234 from jose-bigio/18.09_cherry_pick
...
[18.09] Make -dm image based not tag based
Upstream-commit: 4264c8e1a826c76b0fde570f867cc7e7c6cd30bb
Component: packaging
2018-09-21 15:06:42 -07:00
Eli Uriegas
46a53355c9
Make -dm image based not tag based
...
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
(cherry picked from commit 206d61f29d1722ae3e319e22a4c5c88d1baf6e13)
Signed-off-by: Jose Bigio <jose.bigio@docker.com >
Upstream-commit: aea8f6a1db61a0bb0748f3420e125fcc06e8e0a6
Component: packaging
2018-09-21 14:14:28 -07:00
GordonTheTurtle
1cc89a01f6
Merge component 'engine' from git@github.com:docker/engine 18.09
2018-09-21 21:04:06 +00:00
Daniel Hiltgen
a7ed2532ff
Fix vendoring glitch
...
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com >
Upstream-commit: ec1812188f
Component: cli
2018-09-21 13:16:34 -07:00
Andrew Hsu
4c429518af
Merge pull request #52 from thaJeztah/18.09_backport_fix-TestServiceWithDefaultAddressPoolInit
...
[18.09] backport TestServiceWithDefaultAddressPoolInit: avoid panic
Upstream-commit: ff9340ca2cc003d0829216524c6f96b98ce62f16
Component: engine
2018-09-21 11:19:57 -07:00
Daniel Hiltgen
92a89516ee
Fix lint glitches
...
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com >
Upstream-commit: 6004d74b1f
Component: cli
2018-09-21 11:01:17 -07:00
Andrew Hsu
be44262dc3
Merge pull request #57 from AntaresS/cherry-37871
...
[18.09] backport fixing daemon won't start when "runtimes" option defined in both config file and cli
Upstream-commit: 90a90ae2e1fdb1f9782a51e41fe2b7dc80d48952
Component: engine
2018-09-21 09:54:31 -07:00
GordonTheTurtle
49c0046ea6
Merge component 'cli' from git@github.com:docker/cli 18.09
2018-09-21 12:37:00 +00:00
Sebastiaan van Stijn
ae721f13eb
Merge pull request #1382 from thaJeztah/18.09_manifest-inspect-insecure-fix
...
[18.09] backport fix insecure manifest inspect with restrictive certs perms
Upstream-commit: e79e591ee9
Component: cli
2018-09-21 12:53:24 +02:00
Daniel Hiltgen
f074e8a141
Remove metadata file before writing
...
The packages will deliver this as a link so lets make sure we don't
write through the link to the underlying packaged file.
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com >
Upstream-commit: 0f22d7e295
Component: cli
2018-09-20 18:00:46 -07:00
GordonTheTurtle
6a86f233f3
Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 18.09
2018-09-20 21:03:29 +00:00
Daniel Hiltgen
e5e1355bb7
Review comments
...
Address code review comemnts and purge additional dead code.
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com >
Upstream-commit: f250152bf4
Component: cli
2018-09-20 12:01:20 -07:00
Eli Uriegas
04ec85f5b8
Merge pull request #226 from thaJeztah/18.09_more_updates_to_package_description
...
[18.09] more updates to package description
Upstream-commit: 43f81b5c522ea597c22a1e3e484fc911c865f7aa
Component: packaging
2018-09-20 11:54:50 -07:00
Eli Uriegas
1e6a450e9c
Merge pull request #225 from thaJeztah/18.09_update_package_description
...
[18.09] backport update package description
Upstream-commit: 1cb8fe5bda7d7b92646e5ea859fc5ada832bb0b2
Component: packaging
2018-09-20 11:54:31 -07:00
Eli Uriegas
feaf4f4d37
Merge pull request #230 from kolyshkin/18.09-fix-path
...
[18.09] systemd/docker.service: fix PATH
Upstream-commit: 1b2edd1ffda28df88692bb7faa16ac30f879c5b7
Component: packaging
2018-09-20 11:53:29 -07:00
Eli Uriegas
e0ec331c69
Merge pull request #227 from thaJeztah/18.09_update_fedora_list
...
[18.09] backport Update outdated Fedora versions
Upstream-commit: 8751612797e77ddaa14674aeda1bffd5f85c27b7
Component: packaging
2018-09-20 11:45:24 -07:00
Eli Uriegas
12e294aaf5
Merge pull request #229 from thaJeztah/18.09_revert_suffix
...
[18.09] revert "Specify suffix for DEB_VERSION"
Upstream-commit: ea3b15971e895c2a259bc2fca04f323a8e8a6fb6
Component: packaging
2018-09-20 11:45:02 -07:00
Anda Xu
812694c0cc
fixed the dockerd won't start bug when 'runtimes' field is defined in both daemon config file and cli flags
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
(cherry picked from commit 8392d0930b511402aa7aa71ccfe6c0d4a8159237)
Upstream-commit: 66ed41aec82dbcdfbc38027e3d800e429af1cd58
Component: engine
2018-09-20 10:54:47 -07:00
Christy Norman
622b5b7f2d
fix insecure manifest inspect with restrictive certs perms
...
If, for some reason, the certs directory has permissions that are
inaccessible by docker, we should still be able to fetch manifests using
the `insecure` flag.
Since the cli doesn't access the engine's list of insecure registries,
the registry client should make a singleton list of the registry being queried with the
`insecure` flag.
Closes #1358
Signed-off-by: Christy Norman <christy@linux.vnet.ibm.com >
(cherry picked from commit d57adbc034 )
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: f9d666b057
Component: cli
2018-09-20 19:53:10 +02:00
Kir Kolyshkin
49de0c314f
deb/systemd: remove
...
These files are not used, and having them in repo is misleading.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
Upstream-commit: fca673ad8051d1b377435821ec6c76c0de24b663
Component: packaging
2018-09-20 10:16:39 -07:00
Kir Kolyshkin
be5df7c46b
systemd/docker.service: fix PATH
...
Set the PATH to what appears to be the standard on latest Ubuntu (18.04)
and Debian (9), fixing the following two issues:
1. PATH did not contain /bin (leading to ContainerTop/ps not working
on newer distros, among the other things).
2. $PATH can't be specified in Environment directives in .service files.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
Upstream-commit: 62d9a0d1253049a2fab10f938542a8e09dd0804a
Component: packaging
2018-09-20 10:09:10 -07:00
Sebastiaan van Stijn
76823a4d29
Revert "Specify suffix for DEB_VERSION"
...
This reverts commit 6c5b7fcb956871f7a44e1a478ad9450f9df4bed1.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 00104664c15a6025451ae766b77b78b347ee1ad3
Component: packaging
2018-09-20 16:06:01 +02:00
Justin Clift
0ef2a783ef
Update outdated Fedora versions
...
(cherry picked from commit f0212649020ad5a1b0ca17c61ab500992ac981b4)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 5f5601309ac7c0814b077166aa3b101c8bfce6fe
Component: packaging
2018-09-20 13:04:16 +02:00
Sebastiaan van Stijn
eb465533d3
more updates to package descriptions
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: eb89f3ebd68033fe49b12016ad07f28cfc33d874
Component: packaging
2018-09-20 12:42:43 +02:00
Sebastiaan van Stijn
4827d551d2
change some wording in package description
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
(cherry picked from commit 1a3379642fb37457d0249ae99385d17ddc85a6af)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 56bed5f33d75bf297c8f3c2018a34aaa30cfe9da
Component: packaging
2018-09-20 12:34:01 +02:00
Sebastiaan van Stijn
1456fda3ec
change home page link for deb pkgs
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
(cherry picked from commit a4df8fe1f86f38ad935862eb188b6fc234d22793)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 702f6a07fccef45343368895d105bb3e79ad2339
Component: packaging
2018-09-20 12:33:54 +02:00
Daniel Hiltgen
1a085c96aa
Refined engine implementations
...
Adapt the CLI to the host install model for 18.09.
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com >
Upstream-commit: 342afe44fb
Component: cli
2018-09-19 20:10:31 -07:00
Michael Crosby
2119c0b73f
Install binaries on host for upgrade
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
Upstream-commit: cfec8027ed
Component: cli
2018-09-19 19:06:28 -07:00
GordonTheTurtle
b1b0f9d898
Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 18.09
2018-09-19 01:03:01 +00:00
GordonTheTurtle
9cdb2818ff
Merge component 'engine' from git@github.com:docker/engine 18.09
2018-09-19 01:02:50 +00:00
docker-unir[bot]
bb0dd83bce
Merge pull request #220 from seemethere/configurable_1809
...
Merged with https://github.com/seemethere/unir
Upstream-commit: 24d48340b743436ebf90ef3b18522348d1fe3e16
Component: packaging
2018-09-19 00:01:01 +00:00
Andrew Hsu
43b6de9f82
Merge pull request #50 from AntaresS/cherry-pick-moby
...
[18.09] backport propagate the dockerd cgroup-parent config to buildkitd
Upstream-commit: ea2e2c54272d906d527949c5635b95ac8e23b613
Component: engine
2018-09-18 16:36:12 -07:00
GordonTheTurtle
418dc58053
Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 18.09
2018-09-18 21:03:32 +00:00
Eli Uriegas
33237214c7
Merge pull request #219 from seemethere/dynamic_compile_1809
...
[18.09] Dynamically compile the docker daemon
Upstream-commit: 48b843941c1d913e7a55054783ca7c7a29dbd7d9
Component: packaging
2018-09-18 13:44:37 -07:00
Eli Uriegas
1b4f5d412e
Make base for Dockerfile.engine-dm configurable
...
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
(cherry picked from commit 605df1abcb4c432ebb1b73c29bfa0d5d3d48c0ce)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
Upstream-commit: 7df6db6ac3b71c0a41fc2792e5778e2566b72399
Component: packaging
2018-09-18 13:34:12 -07:00
Eli Uriegas
8647a399e2
Dynamically compile the docker daemon
...
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
(cherry picked from commit 4f18a1969510930b98b4ad4375297ea4db3298f3)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com >
Upstream-commit: 5e9cc984546917e2129e7601e329d9ce085d1e7e
Component: packaging
2018-09-18 13:30:21 -07:00
Anda Xu
97c18c02cb
create newBuildKit function separately in daemon_unix.go and daemon_windows.go for cross platform build
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
(cherry picked from commit 66ac92cdc65be350ec53f1de51052374846dfe24)
Upstream-commit: a5d731edecc75927f602c7f15e5ba9f5f77d3655
Component: engine
2018-09-18 11:19:51 -07:00
Sebastiaan van Stijn
b483a6d33c
Loosen permissions on /etc/docker directory
...
The `/etc/docker` directory is used both by the dockerd daemon
and the docker cli (if installed on the saem host as the daemon).
In situations where the `/etc/docker` directory does not exist,
and an initial `key.json` (legacy trust key) is generated (at the
default location), the `/etc/docker/` directory was created with
0700 permissions, making the directory only accessible by `root`.
Given that the `0600` permissions on the key itself already protect
it from being used by other users, the permissions of `/etc/docker`
can be less restrictive.
This patch changes the permissions for the directory to `0755`, so
that the CLI (if executed as non-root) can also access this directory.
> **NOTE**: "strictly", this patch is only needed for situations where no _custom_
> location for the trustkey is specified (not overridden with `--deprecated-key-path`),
> but setting the permissions only for the "default" case would make
> this more complicated.
```bash
make binary shell
make install
ls -la /etc/ | grep docker
dockerd
^C
ls -la /etc/ | grep docker
drwxr-xr-x 2 root root 4096 Sep 14 12:11 docker
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
(cherry picked from commit cecd9817177093be99c1c9bb0dcf43ccec14ad1d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: fc576226b24e8b5db6e95e48967d56c5808f9fe9
Component: engine
2018-09-18 12:34:56 +02:00
GordonTheTurtle
4a973bddb1
Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 18.09
2018-09-18 01:03:19 +00:00