v2.17.0
版本发布时间: 2023-03-22 20:59:58
docker/compose最新发布版本:v2.29.7(2024-09-20 16:52:10)
💁🏻 Upgrade Notes (2.17.x)
- Project name validation is more strictly enforced (project names must be lowercase alphanumeric characters,
-
, or_
and start with a letter/number) - Only YAML 1.2 boolean values (
true
/false
) are now accepted (deprecated YAML 1.1 values no longer supported:)y|Y|yes|Yes|YES|n|N|no|No|NO|True|TRUE|False|FALSE|on|On|ON|off|Off|OFF
- Duplicate mapping keys (
<<
) for merging YAML anchors are not allowed (see #10411)
What's Changed
✨ Enhancements
- introduce --wait-timeout on
up
by @ndeloof in https://github.com/docker/compose/pull/10276 - sort service --hash output by service name by @ndeloof in https://github.com/docker/compose/pull/10278
- compact TUI to monitor layers download progress by @ndeloof in https://github.com/docker/compose/pull/10281
- introduce
restart
for depends_on by @ndeloof in https://github.com/docker/compose/pull/10284 - adopt http://no-color.org/ by @ndeloof in https://github.com/docker/compose/pull/10342
- progress writer uses dockercli.Err stream by @ndeloof in https://github.com/docker/compose/pull/10366
-
introduce dockerfile_inline by @ndeloof in https://github.com/docker/compose/pull/10343 - add support for
additional_contexts
inbuild
service config by @laurazard in https://github.com/docker/compose/pull/10369 - watch: add file delete/rename handling by @milas in https://github.com/docker/compose/pull/10386
- introduce
ignore
attribute for watch triggers by @ndeloof in https://github.com/docker/compose/pull/10385 - use progress to show copy status by @ndeloof in https://github.com/docker/compose/pull/10387
- update -p project name flag documentation by @glours in https://github.com/docker/compose/pull/10390
🐛 Fixes
- exclude unstable labels from config hash by @ndeloof in https://github.com/docker/compose/pull/10275
- also restart dependent services after a service has been restarted by @ndeloof in https://github.com/docker/compose/pull/10273
- ignore services without a build section by @ndeloof in https://github.com/docker/compose/pull/10271
- apply config options for pseudo-subcommands by @ndeloof in https://github.com/docker/compose/pull/10289
- only consider containers with config_hash labels (i.e, created by compose) by @ndeloof in https://github.com/docker/compose/pull/10317
- report error if project name is empty after normalization by @ndeloof in https://github.com/docker/compose/pull/10334
- restart only needed services by checking depends_on relations by @glours in https://github.com/docker/compose/pull/10338
- pad can be negative on small terminal by @ndeloof in https://github.com/docker/compose/pull/10336
- collect built image IDs by @ndeloof in https://github.com/docker/compose/pull/10372
- one off container name use configured Separator for naming by @ndeloof in https://github.com/docker/compose/pull/10357
- fix concurrent map read/write when recreating containers by @lrascao in https://github.com/docker/compose/pull/10379
🔧 Internal
- add dry-run support for
stop
andrm
by @glours in https://github.com/docker/compose/pull/10257 - add dry-run support for pull command by @glours in https://github.com/docker/compose/pull/10341
- add dry-run support for push command by @glours in https://github.com/docker/compose/pull/10355
- add dry-run support for
exec
command by @glours in https://github.com/docker/compose/pull/10252 - add dry-run support for
restart
by @glours in https://github.com/docker/compose/pull/10339 - ci: use CGO for tests to enable race detector by @milas in https://github.com/docker/compose/pull/10261
- ci: don't use
-race
on Windows by @milas in https://github.com/docker/compose/pull/10262 - ci: bump to Go 1.20.1 and latest deps by @milas in https://github.com/docker/compose/pull/10285
- use go 1.20 -cover support by @ndeloof in https://github.com/docker/compose/pull/10361
- build and push binaries images when a PR is merged or a tag pushed by @glours in https://github.com/docker/compose/pull/10371
- use CGO to enable fsevent on OSX [ENV-37] by @ndeloof in https://github.com/docker/compose/pull/10249
- watch: ignore ephemeral files & minor output tweaks by @milas in https://github.com/docker/compose/pull/10311
- test: tweak pause test to try and prevent failures in Windows CI by @milas in https://github.com/docker/compose/pull/10320
- preserve symbol table in binaries for static analysis (
govulncheck
) by @tianon in https://github.com/docker/compose/pull/10325 - use
build
as common API for build scenarios by @ndeloof in https://github.com/docker/compose/pull/10374
Changelog
- build(deps): bump go.uber.org/goleak from 1.1.12 to 1.2.1 by @dependabot in https://github.com/docker/compose/pull/10279
- build(deps): bump github.com/docker/buildx from 0.10.2 to 0.10.3 by @dependabot in https://github.com/docker/compose/pull/10291
- build(deps): bump github.com/containerd/containerd from 1.6.17 to 1.6.18 by @dependabot in https://github.com/docker/compose/pull/10287
- bump golang/x/net to v0.7.0 (CVE-2022-41723) by @glours in https://github.com/docker/compose/pull/10302
- build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in https://github.com/docker/compose/pull/10316
- build(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 by @dependabot in https://github.com/docker/compose/pull/10329
- build(deps): bump github.com/containerd/containerd from 1.6.18 to 1.6.19 by @dependabot in https://github.com/docker/compose/pull/10330
- update compose-go by @ndeloof in https://github.com/docker/compose/pull/10335
- build(deps): bump github.com/moby/buildkit from 0.11.3 to 0.11.4 by @dependabot in https://github.com/docker/compose/pull/10353
- build(deps): bump github.com/docker/buildx from 0.10.3 to 0.10.4 by @dependabot in https://github.com/docker/compose/pull/10352
New Contributors
- @tianon made their first contribution in https://github.com/docker/compose/pull/10325
- @lrascao made their first contribution in https://github.com/docker/compose/pull/10379
Full Changelog: https://github.com/docker/compose/compare/v2.16.0...v2.17.0
1、 checksums.txt 1.03KB
2、 docker-compose-darwin-aarch64 49.95MB
3、 docker-compose-darwin-aarch64.sha256 96B
4、 docker-compose-darwin-x86_64 52.02MB
5、 docker-compose-darwin-x86_64.sha256 95B
6、 docker-compose-linux-aarch64 49.57MB
7、 docker-compose-linux-aarch64.sha256 95B
8、 docker-compose-linux-armv6 48.54MB
9、 docker-compose-linux-armv6.sha256 93B
10、 docker-compose-linux-armv7 48.48MB
11、 docker-compose-linux-armv7.sha256 93B
12、 docker-compose-linux-ppc64le 50.63MB
13、 docker-compose-linux-ppc64le.sha256 95B
14、 docker-compose-linux-riscv64 50.93MB
15、 docker-compose-linux-riscv64.sha256 95B
16、 docker-compose-linux-s390x 54.32MB
17、 docker-compose-linux-s390x.sha256 93B
18、 docker-compose-linux-x86_64 51.74MB
19、 docker-compose-linux-x86_64.sha256 94B
20、 docker-compose-windows-aarch64.exe 49.77MB
21、 docker-compose-windows-aarch64.exe.sha256 101B
22、 docker-compose-windows-x86_64.exe 52.03MB
23、 docker-compose-windows-x86_64.exe.sha256 100B
24、 LICENSE 300B