Home Explore Blog CI



docker

10th chunk of `content/manuals/compose/releases/release-notes.md`
4a5c7df442ce2fa72a11e819b1ddc60e67743dc305803e730000000100000fbc
* Fixed a process leak in the wait e2e test.
* Improved some test speeds.

## 2.19.1

{{< release-date date="2023-06-29" >}}

### Update

- Dependencies upgrade: bump compose-go to v1.15.1

### Bug fixes and enhancements

- Fixed sporadic "container not connected to network" errors on `compose up`.
- Fixed "please specify build context" errors on `compose build`.
- Compose now warns if using a bind mount in a service `watch` configuration.

## 2.19.0

{{< release-date date="2023-06-21" >}}

### Update

- Dependencies upgrade: bump compose-go to v1.15.0
- Dependencies upgrade: bump buildx to v0.11.0
- Dependencies upgrade: bump docker to v24.0.2
- Dependencies upgrade: bump golang to 1.20.5

### Bug fixes and enhancements

- Introduced the ability to select a single service to be stopped by `compose down`.
- Added `--progress` as top-level flag to configure progress UI style.
- Introduced `run --cap-add` to run maintenance commands using service image.
- Fixed a bug during detection of swarm mode.
- Fixed a bug when setting the project name via `COMPOSE_PROJECT_NAME` environment variable.
- Adjusted the display of the volumes flag with the help of `down` command.
- Fixed a bug in the `up` command which should not silently ignore missing `depends_on` services.
- Aligned forward signal to container behaviour with the `docker run` one.
- Compose now detects network name conflict.
- Fixed a typo in the warning message about an existing volume.
- Compose now detects new services started after `compose -p x logs -f` command.
- Fixed a bug when `compose` was used as project name.
- Fixed a bug in the `watch` command when a directory does not exist.
- Removed default timeout of 10 seconds when restarting or stopping services.
- Fixed a bug in `watch` which applied the "rebuild" strategy by default.
- Fixed a race condition, waiting for containers when one exit.
- Added a warning telling users that uid,gid,mode are not implemented for `build.secrets`.
- Fixed a bug in `watch` which was watching the whole build context instead of only configured paths.
- Compose now sorts containers by creation date to scale down the older ones first.
- Fixed a bug in the docs generation task for Windows environments.
- Updated the docs to reflect Dry Run mode is feature complete.
- Improved the diagnostic message on network label mismatch.
- Fixed a bug which was rendering `Building` section when there was no build involved.
- Fixed a bug in code coverage metrics.
- Added OTEL initialization.
- Added a GitHub action to trigger Docker Desktop e2e tests with Compose edge versions.
- Added more ignore rules to dependabot.

## 2.18.1

{{< release-date date="2023-05-17" >}}

### Bug fixes and enhancements

- Fixed "Image not found" errors when building images

## 2.18.0

{{< release-date date="2023-05-16" >}}

### Update

- Dependencies upgrade: bump compose-go to v1.13.5
- Dependencies upgrade: bump buildkit to v0.11.6
- Dependencies upgrade: bump docker to v23.0.5

### Bug fixes and enhancements

- Added dry run support using `--dry-run`
- Added the first (alpha) implementation of the `viz` sub-command
- Introduced `--no-path-resolution` to skip relative path to be resolved
- Introduced `COMPOSE_ANSI` to define the `--ansi` default value
- Introduced `COMPOSE_STATUS_STDOUT` to get status messages sent to stdout
- Fixed the BuildKit progressui integration
- Fixed a bug to stop blocking the events loop collecting logs
- Restored support for `--memory`
- Fixed a bug which meant containers didn't stop after termination
- Compose now lets users declare the build secret target
- Fixed a bug which caused a container to be recreated when the config has not changed
- Fixed a race condition when `--parallel` is used with a large number of dependent services
- Compose now checks the local image matches the required platform
- Fixed local image removal when `compose down` is ran with `--project-name`
- Compose now detects the active endpoint trying to remove the network and skips with a warning

Title: Docker Compose Release Notes (Versions 2.18.0 - 2.19.1)
Summary
This document summarizes Docker Compose release notes from versions 2.18.0 to 2.19.1. Key updates include dependency upgrades (compose-go, buildx, docker, golang, buildkit), introduction of dry run support using `--dry-run`, addition of the `viz` sub-command (alpha), `--no-path-resolution`, `COMPOSE_ANSI`, `COMPOSE_STATUS_STDOUT`, and `run --cap-add`. Bug fixes address "Image not found" errors, issues with swarm mode detection, `COMPOSE_PROJECT_NAME` environment variable, missing `depends_on` services, signal forwarding alignment, network name conflicts, existing volume warnings, new service detection after `compose logs -f`, `compose` project name usage, `watch` command issues, default timeout removal, "rebuild" strategy in `watch`, race conditions, uid/gid/mode implementation in `build.secrets`, and more. The updates also include documentation improvements, diagnostic message enhancements, and code coverage fixes.