Releases: docker/compose
v2.12.1
What's Changed
🐛 Security Fixes
🔧 Internal
- Skip flaky test in CI
merge
workflow by @laurazard in #9933 - build(deps): bump go.opentelemetry.io/otel from 1.11.0 to 1.11.1 by @dependabot in #9937
Full Changelog: v2.12.0...v2.12.1
v2.12.0
What's Changed
Enhancements ✨
- Add support to push images quietly via compose cli 🤫 by @KoditkarVedant in #9168
🐛 Fixes
🔧 Internal
- 🥒 Cucumber PoC 🥒 by @laurazard in #9824
- ci: update docs repo path by @milas in #9886
- github: switch to issue template form by @milas in #9887
- Misleading error message for port command. by @tiagombsilva in #9909
- Fix Makefile target
validate-go-mod
by @laurazard in #9926
Bumps
- Update to go 1.19.2 to address CVE-2022-2879, CVE-2022-2880, CVE-2022-41715 by @thaJeztah in #9894
- build(deps): bump gotest.tools/v3 from 3.3.0 to 3.4.0 by @dependabot in #9905
- build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 by @dependabot in #9908
- build(deps): bump go.opentelemetry.io/otel from 1.10.0 to 1.11.0 by @dependabot in #9912
- bump docker dependencies version by @glours in #9925
New Contributors
- @tiagombsilva made their first contribution in #9909
Full Changelog: v2.11.2...v2.12.0
v2.11.2
ℹ️ Upgrade Notes
- Updates on environment file syntax & interpolation: see #9879 🔖
- Setting
DOCKER_HOST
via.env
files is not supported in Compose v2
🐛 Fixes
- Prevent "invalid template" errors on valid environment variable values (#9806, #9746, #9704, #9294)
- Ensure new images from
docker compose build
are used (#9856) - Fix cross-architecture builds when
DOCKER_DEFAULT_PLATFORM
not set (#9866) - Fix intermittent conflict errors when using
depends_on
(#9014) - Clear service
CMD
when entrypoint is overridden (#9622)
🔧 Internal
- Reduced permissions for GitHub Actions CI jobs
- CI now runs on Windows & macOS including E2E tests via Docker Desktop
- Upgrade to compose-go v1.6.0
- Internal support for shell completion (not ready yet!)
What's Changed
- Add
merge
GitHub Actions workflow to run tests on Windows and macOS runners by @laurazard in #9863 - configure default builder export when no build.platforms defined by @glours in #9862
- keep the platform defined, in priority, via DOCKER_DEFAULT_PLATFORM o… by @glours in #9866
- Remove support for
DOCKER_HOST
in.env
files by @milas in #9871 - clean service command if entrypoint is overrided in run command by @glours in #9836
- Add completion command and fix convert by @ulyssessouza in #9269
- ci: upgrade to compose-go v1.6.0 by @milas in #9876
- add more information when
service.platform
isn't part ofservice.build.platforms
by @bkielbasa in #9868 - GitHub Workflows security hardening by @sashashura in #9874
- deps: fix race condition during graph traversal by @milas in #9878
New Contributors
- @bkielbasa made their first contribution in #9868
- @sashashura made their first contribution in #9874
Full Changelog: v2.11.1...v2.11.2
v2.11.1
What's Changed
Fixes 🐛
- Keep
depends_on
condition when service hasvolumes_from
by @laurazard in #9849 - keep the platform defined at service level during build if no build patforms provided by @glours in #9847
- keep the platform defined via DOCKER_DEFAULT_PLATFORM during build if no build platforms provided by @glours in #9854
Full Changelog: v2.11.0...v2.11.1
v2.11.0
What's Changed
Enhancements ✨
- Add platforms build by @glours in #9729
- chore: add improvement output warning when pulling image by @RiskyFeryansyahP in #9829
- logs: filter to services from current Compose file by @milas in #9811
Fixes 🐛
- Correctly capture exit code when service has dependencies by @laurazard in #9794
- Fix
down
with--rmi
by @ulyssessouza in #9715 - Fix docker-compose convert that turns $ into $$ when using the --no-interpolate option by @BergLucas in #9703
- patch: build.go access custom labels directly cause panic by @RiskyFeryansyahP in #9810
- Apply newly loaded envvars to "DockerCli" and "APIClient" by @ulyssessouza in #9817
- Only attempt to start specified services on
compose start [services]
by @laurazard in #9797 - build: label built images for reliable cleanup on
down
by @milas in #9819
Internal 🔧
- ci: reduce noise from dependabot on Docker deps by @milas in #9770
- ci: upgrade to Go 1.19.1 by @milas in #9812
- Update README.md by @Taha-Chaudhry in #9828
- Update api.go by @Sh9hid in #9798
Bumps
- build(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 by @dependabot in #9802
- build(deps): bump github.com/cnabio/cnab-to-oci from 0.3.6 to 0.3.7 by @dependabot in #9809
- build(deps): bump go.opentelemetry.io/otel from 1.9.0 to 1.10.0 by @dependabot in #9835
- build(deps): bump github.com/AlecAivazis/survey/v2 from 2.3.5 to 2.3.6 by @dependabot in #9830
- build(deps): bump go.opentelemetry.io/otel from 1.4.1 to 1.9.0 by @dependabot in #9821
- update compose-go version to v1.5.1 by @glours in #9840
New Contributors
- @Sh9hid made their first contribution in #9798
- @RiskyFeryansyahP made their first contribution in #9810
- @BergLucas made their first contribution in #9703
- @Taha-Chaudhry made their first contribution in #9828
Full Changelog: v2.10.2...v2.11.0
v2.10.2
Fixes 🐛
- Properly respect
DOCKER_TLS_VERIFY
andDOCKER_CERT_PATH
(#9792)
Internal 🔧
- Improved
Makefile
for usage within docker/docker-ce-packaging (#9776)
What's Changed
- Revert "Apply newly loaded envvars to
DockerCli
andAPIClient
" by @milas in #9792 - Makefile: mutualize local and Dockerfile build opts by @crazy-max in #9776
Full Changelog: v2.10.1...v2.10.2
v2.10.1
Fixes 🐛
- Fix image pulls being skipped when
pull_policy
not set (#9773) - Restore
.sha256
checksum files in release artifacts (#9772)
What's Changed
- Wake up! by @ulyssessouza in #9769
- pull: always pull when policy not specified by @nicksieger in #9777
- Remove error message showing exit code when using --exit-code-from by @mikesir87 in #9783
- ci: fix checksums checking by @nicksieger in #9784
- Pull image regardless of whether it exists locally if
tag=latest
by @laurazard in #9781 - build(deps): bump github.com/moby/buildkit from 0.10.3 to 0.10.4 by @dependabot in #9780
- ci: bring back individual checksum files by @nicksieger in #9786
Full Changelog: v2.10.0...v2.10.1
v2.10.0
What's Changed
Enhancements ✨
- Apply newly loaded envvars to "DockerCli" and "APIClient" by @ulyssessouza in #9745
- Build windows/arm64 and linux/riscv64 binaries by @crazy-max in #9751
Fixes 🐛
- Give environment variables precedence back to OS over .env by @ulyssessouza in #9761
- Update usage strings for consistency by @thaJeztah in #9706
- Resolve environment variables case-insensitively on Windows by @ikedam in #9438
- Do not stop dependency containers by @milas in #9701
- If command is ran with a compose file, apply the compose model by @ndeloof in #9375
- Remove extra whitespaces in help text of some subcommands by @tkhoa2711 in #9710
- Don't apply default pull policy from command line if one is defined in service configuration by @glours in #9720
- Filter out commandConn.Close* warning message by @crazy-max in #9748
- Don't wait for disabled dependency by @nicksieger in #9759
- Apply compose model on
compose kill
, add--remove-orphans
by @laurazard in #9764 - Avoid pulling same images multiple times ⚡️ by @KoditkarVedant in #9173
Internal 🔧
- Remove unused workflows, especially the pr-closed which always failed by @glours in #9689
- Update Dockerfile syntax to latest stable, and rename docs Dockerfile by @thaJeztah in #9711
- Use correct YAML marshal func by @milas in #9712
- Run gofmt from Go 1.19 by @milas in #9728
- Add
nolintlint
and clean upnolint
directives by @milas in #9738 - Better sandboxed workflow and enhanced cross compilation by @crazy-max in #9744
- Fix badges by @crazy-max in #9747
- Fix checksums file by @crazy-max in #9750
Bumps
- Bump to Go 1.18.5 by @milas in #9708
- Upgrade BuildKit & docker/distribution by @milas in #9709
- Bump github.com/cnabio/cnab-to-oci from 0.3.5 to 0.3.6 by @dependabot in #9714
- Fix version of golangci-lint to v1.47.3, issue with v1.48.0 for now by @glours in #9722
- Bump github.com/containerd/containerd from 1.6.6 to 1.6.7 by @dependabot in #9723
- Update Docker CLI version use in CI to v20.10.17 by @glours in #9721
- Bump github.com/containerd/containerd from 1.6.7 to 1.6.8 by @dependabot in #9736
- Bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16 by @dependabot in #9754
New Contributors
- @tkhoa2711 made their first contribution in #9710
Full Changelog: v2.9.0...v2.10.0
v2.9.0
⚠️ Warning notice ⚠️
Note
Compose v2.9.0 contains changes to environment variable precedence that have since been reverted. We recommend using v2.10+ to avoid compatibility issues.
Note
This version revert the breaking changes introduce in Composev2.8.0
by compose-gov1.3.0
What's Changed
Fixes 🐛
- Overwrite parent commands PreRun code for
compose version
by @laurazard in #9698 - Fix LinkLocalIPs in V2 by @floatingstatic in #9692
Internal 🔧
- Link to BUILDING.md for testing instructions by @ikedam in #9639
- update to compose-go v1.4.0 as previous version introduced breaking changes by @glours in #9700
New Contributors
- @ikedam made their first contribution in #9639
- @floatingstatic made their first contribution in #9692
Full Changelog: v2.8.0...v2.9.0
v2.8.0
⚠️ Warning notice ⚠️
This release introduced a breaking change via compose-go v1.3.0
and this PR.
Docker Compose will recreate new resources (networks, volumes, secrets, configs...) with new names, using a -
instead a _
and try to connect/use to this new created resources instead of your existing ones!
Please use Compose v2.9.0
instead
What's Changed
Enhancements ✨
Fixes 🐛
- Fix interpolation error msg output by @ulyssessouza in compose-spec/compose-go#292
- Environment variables priority by @ulyssessouza in #9636
Internal 🔧
- CI(docs): use push-to-fork when creating pr by @crazy-max in #9670
- Increase code quality by adding
gocritic
to the linters - Use env variable for golang version and updates gh actions from v2 to v3 by @glours in #9675
- Use Google addlicense instead of kunalkushwaha/ltag by @glours in #9677
Changelog
- CI(docs): use push-to-fork when creating pr by @crazy-max in #9670
- Remove unused sessionConfig param for addSecretsConfig function by @glours in #9673
- Use env variable for golang version and updates gh actions from v2 to v3 by @glours in #9675
- Update cli-doc-tool and update the doc with this new version by @glours in #9676
- Introduce --pull by @ndeloof in #9474
- Use Google addlicense instead of kunalkushwaha/ltag by @glours in #9677
- Enforce consistent args rejection for no-args commands: ls, restart, version by @piroux in #9660
- Exclude Named Pipes from volumeMounts by @ras0219 in #9414
- As --no-build is set, set service image to default image name by @ndeloof in #9179
- Use '-' as separator by default for image name by @glours in #9687
- Environment variables priority by @ulyssessouza in #9636
- Remove Image during ensureImageExists so it does not impact config-hash by @kmdm in #9350
- Bump compose-go -> 1.3.0 by @ulyssessouza in #9688
- Ignore variable names starting with numbers by @ulyssessouza in compose-spec/compose-go#284
- Add missing LinkLocalIPs to ServiceNetworkConfig by @floatingstatic in compose-spec/compose-go#289
- Add 'default' value in case of presence of a variable by @ulyssessouza in compose-spec/compose-go#291
- Fix lookup precedence by @ulyssessouza in compose-spec/compose-go#280
- Add "nakedret" to the linters to put dotenv in conformity by @ulyssessouza in compose-spec/compose-go#287
- Upgrade dependencies to latest by @milas in compose-spec/compose-go#293
- Fix interpolation error msg output by @ulyssessouza in compose-spec/compose-go#292
- Ensure compatibility for all supported Go versions by @milas in compose-spec/compose-go#295
- Use '-' as default separator and support of compatibility mode by @glours in compose-spec/compose-go#294
New Contributors
- @piroux made their first contribution in #9660
- @ras0219 made their first contribution in #9414
- @kmdm made their first contribution in #9350
Full Changelog: v2.7.0...v2.8.0