Releases: docker/compose
Releases · docker/compose
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
v2.7.0
What's Changed
Enhancements ✨
Fixes 🐛
- networks: prevent issues due to duplicate names by @milas in #9585
- Fix issue with close networks name on up and down command by @glours in #9640
- Use appropriate dependency condition for one-shot containers when running
compose up --wait
by @laurazard in #9572 - Fix environment variable expansion by @ulyssessouza in compose-spec/compose-go#276
- Validate depended-on services exist in consistency check by @laurazard in compose-spec/compose-go#281
- Fix hash usage in environment values by @ulyssessouza in compose-spec/compose-go#283
- build: respect dependency order for classic builder by @milas in #9587
- fix: panic caused by empty string argument by @nicksieger in #9592
- (re)start should not impact one-off containers by @ndeloof in #9049
- keep the container reference when volumes_from target a container and not a service by @glours in #9641
- build.go: initialize CustomLabels map if nil by @paroque28 in #9579
Internal 🔧
- ci: release workflow to open a PR on docs repo with latest changes by @crazy-max in #9583
- Bump compose-go -> v1.2.9 by @ulyssessouza in #9664
- e2e: split out
pause
tests and add more cases by @milas in #9609 - e2e: add more start/stop test cases by @milas in #9612
- Bump compose-go -> v1.2.9 by @ulyssessouza in #9664
- update go to 1.18.4 by @thaJeztah in #9645
- add new targets to build Compose binary before running e2e tests by @glours in #9623
Changelog
- build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 by @dependabot in #9580
- build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 by @dependabot in #9581
- build(deps): bump github.com/cnabio/cnab-to-oci from 0.3.3 to 0.3.4 by @dependabot in #9582
- build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 by @dependabot in #9590
- build(deps): bump github.com/hashicorp/go-version from 1.5.0 to 1.6.0 by @dependabot in #9607
- Replace deprecated ioutil pkg with os & io by @abhinavnair in #9595
- build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 by @dependabot in #9611
- TC: Use switch case to simplify flag conversion and avoid multiple if statements by @TheodosiouTh in #9507
- Fix golangci syntax error in run configuration by @Jeldo in #9619
- build(deps): bump github.com/cnabio/cnab-to-oci from 0.3.4 to 0.3.5 by @dependabot in #9631
- Fix typo in compose pull documentation by @Oriun in #9626
- Add gocritic to linters by @ulyssessouza in #9643
- add 2 named networks with close name in the networks test suite to gu… by @glours in #9647
- build(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 by @dependabot in #9663
New Contributors
- @crazy-max made their first contribution in #9583
- @abhinavnair made their first contribution in #9595
- @TheodosiouTh made their first contribution in #9507
- @Jeldo made their first contribution in #9619
- @Oriun made their first contribution in #9626
- @paroque28 made their first contribution in #9579
Full Changelog: v2.6.1...v2.7.0
v2.6.1
What's New
Enhancements ✨
Fixes 🐛
- Do not start unrelated dependencies on
run
by @laurazard in #9558 - Fix service not found errors when using
--no-deps
by @nicksieger in #9504 - Respect
COMPOSE_REMOVE_ORPHANS
env var ondown
by @nicksieger in #9564 - Fix project level bind mounts volumes by @ulyssessouza in #9514
- Respect
deploy.limits.cpus
anddeploy.limits.pids
by @glours in #9552
Internal 🔧
- Upgrade: Go v1.18.3 by @thaJeztah in #9525
- Upgrade: compose-go v1.2.8 by @milas in #9588
- Upgrade: buildx v0.8.2 by @dependabot in #9544
- Upgrade: containerd v1.6.6 by @dependabot in #9546
Changelog
- fix: bring up services with deps with --no-deps by @nicksieger in #9504
- update golang to 1.18.3 by @thaJeztah in #9525
- Bump runc -> 1.1.2 by @ulyssessouza in #9522
- Add links to container create request. by @laurazard in #9523
- fix: prevent network name ambiguity by @milas in #9520
- Bump github.com/theupdateframework/notary from 0.6.1 to 0.7.0 by @dependabot in #9262
- Bump github.com/cnabio/cnab-to-oci from 0.3.1-beta1 to 0.3.3 by @dependabot in #9307
- Bump github.com/hashicorp/go-version from 1.3.0 to 1.5.0 by @dependabot in #9485
- Bump github.com/stretchr/testify from 1.7.0 to 1.7.2 by @dependabot in #9538
- Fix ps ports output; includes unit test by @nicksieger in #9539
- Bump github.com/docker/buildx from 0.8.1 to 0.8.2 by @dependabot in #9544
- Bump github.com/AlecAivazis/survey/v2 from 2.3.2 to 2.3.5 by @dependabot in #9541
- e2e: add test for ps by @nicksieger in #9545
- Bump github.com/containerd/containerd from 1.6.2 to 1.6.6 by @dependabot in #9546
- Fix bind mounts when in project volumes definition by @ulyssessouza in #9514
- Only start direct dependencies of service on
compose run ...
by @laurazard in #9558 - Fix deploy cpus issue and support pids limit by @glours in #9552
- e2e: unmarshal json into container summaries by @nicksieger in #9547
- add support for setting secret from env variable by @ndeloof in #9553
- e2e: fix subtests and block parallel unsafe tests by @milas in #9561
- down: fix COMPOSE_REMOVE_ORPHANS env name and add test by @nicksieger in #9564
- e2e: isolate test command env from system env by @milas in #9563
- e2e: fix spurious
ps
failures by @milas in #9566 - fixed some spelling mistakes by @venthur in #9559
- e2e: ensure all Compose cmds standalone compatible by @milas in #9567
- Don't use ansi even when deprecated option is requested by @quite in #9311
- e2e: improve test output on failures by @milas in #9568
- deps: upgrade to compose-go v1.2.8 by @milas in #9588
New Contributors
- @nicksieger made their first contribution in #9504
- @milas made their first contribution in #9520
Full Changelog: v2.6.0...v2.6.1
v2.6.0
What's Changed
- fix TestLocalComposeUp which fail locally and bump compose-go to 1.2.7 by @glours in #9486
- attach only to services declared by project applying profiles by @ndeloof in #9488
- Add ddev's e2e test by @ulyssessouza in #9033
- Fix local run of
make e2e-compose-standalone
by @ulyssessouza in #9493 - fix: prevent flickering prompt when pulling same image from N services by @maxcleme in #9476
- add tags property to build section by @glours in #9481
- update golang version to 1.18 by @glours in #9453
- bump compose-go to 1.2.6 by @maxcleme in #9495
- add e2e tests to verify env variables priority by @glours in #9499
- Import dotenv file to os environment by @ulyssessouza in #9512
New Contributors
Full Changelog: v2.5.1...v2.6.0
v2.5.1
What's Changed
- Fix relative paths on envfile label by @ulyssessouza in #9422
- down: Reject all arguments by @Jille in #9158
- Clarify what default work dir is when multiple compose files by @quite in #9423
- compose down exit=0 if nothing to remove by @ndeloof in #9440
- cp command: copy to all containers of a service as default behaviour by @glours in #9437
- Fix extra space printed with
--no-log-prefix
option by @jan4843 in #9465 - bump compose-go to 1.2.5 by @ndeloof in #9475
New Contributors
- @Jille made their first contribution in #9158
- @quite made their first contribution in #9423
- @jan4843 made their first contribution in #9465
Full Changelog: v2.5.0...v2.5.1
v2.5.0
What's Changed
- Fix search/replace typo in --no-TTY documentation by @ericfreese in #9329
- Fix panic with down command when -p flag specified by @glours in #9354
- use project we just created to start services by @ndeloof in #9365
- include services declared by
links
as implicit dependencies by @ndeloof in #9368 pull
to respect pull_policy by @ndeloof in #9376- don't ignore error by @ndeloof in #9384
- project name MUST be lowercase by @ndeloof in #9385
- add support for build secrets by @ndeloof in #9386
- create also a checksums.txt file, add --binary by @MaxPeal in #9389
- add support for ppc64le for docker compose by @snehakpersistent in #9392
- inspect image ID after pull to se com.docker.compose.image by @ndeloof in #9366
- Fix cannot setup IPAM gateway by @qnap-ericfan in #9363
New Contributors
- @ericfreese made their first contribution in #9329
- @MaxPeal made their first contribution in #9389
- @snehakpersistent made their first contribution in #9392
- @qnap-ericfan made their first contribution in #9363
Full Changelog: v2.4.1...v2.5.0
v2.4.1
v2.4.0
What's Changed
- pass interactive flag to ExecOptions for the RunExec command by @glours in #9318
- go.mod: pin k8s version to fix build on go1.16, and update buildx to v0.8.1 by @thaJeztah in #9317
- support cache_from|to|no|pull by @ndeloof in #9222
- fix race condition on start-stop e2e tests running in parrallel by @glours in #9331
- Add support of ssh authentications defined in compose file or via cli… by @glours in #9325
- fix typo in ssh option description by @mschoettle in #9334
- Takes COMPOSE_PROJECT_NAME into consideration on commands by @ulyssessouza in #9332
- Remove dead warning code by @ulyssessouza in #9335
- Fix down command without any resource to delete by @ulyssessouza in #9336
- vendor: github.com/containerd/containerd v1.6.2 by @thaJeztah in #9309
New Contributors
- @mschoettle made their first contribution in #9334
Full Changelog: v2.3.4...v2.4.0
v2.3.4
What's Changed
- don't fail trying to remove container with no candidate by @ndeloof in #9256
- recreate container after image has been rebuilt/pulled by @ndeloof in #9261
- ps: un-deprecate --filter, and enhance docs by @thaJeztah in #9266
- Bump github.com/spf13/cobra from 1.3.0 to 1.4.0 by @dependabot in #9271
- Remove DEPRECATED text, since it's just the default by @ulyssessouza in #9231
- Bump Buildx to v0.8.0 by @ndeloof in #9254
- kill only need project name by @ndeloof in #9280
- don't remove external volumes/networks by @ndeloof in #9281
- use docker/cli RunExec and RunStart to handle all the interactive/tty/* terminal logic by @ndeloof in #9258
- Validate doc on pr by @glours in #9293
Full Changelog: v2.3.3...v2.3.4
v2.3.3
What's Changed
- use plain text progress when ansi=never is set by @ndeloof in #9247
- build full compose model from resources, then filter by services by @ndeloof in #9250
- add run with dependencies e2e test by @glours in #9252
- add support for device_cgroup_rules by @ndeloof in #9251
- composeService to use dockerCli's In/Out/Err streams by @ndeloof in #9198
- fix generated YAML missing an "examples" section, and update cli-docs-tool to v0.4.0 by @thaJeztah in #9253
Full Changelog: v2.3.2...v2.3.3