mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
bump compose to version v5.5.1
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
This commit is contained in:
13 files changed
+101
-10
No files matched your search
+7
-6
@@ -5,12 +5,13 @@ Convert compose files to Kubernetes manifests, Helm charts, or another model
|
||||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|:-------------------------|:--------------|:--------|:-------------------------------------------------------------------------------------|
|
||||
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
||||
| `-o`, `--output` | `string` | `out` | The output directory for the Kubernetes resources |
|
||||
| `--templates` | `string` | | Directory containing transformation templates |
|
||||
| `-t`, `--transformation` | `stringArray` | | Transformation to apply to compose model (default: docker/compose-bridge-kubernetes) |
|
||||
| Name | Type | Default | Description |
|
||||
|:-------------------------|:--------------|:--------|:---------------------------------------------------------------------------------------------------------------------|
|
||||
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
||||
| `-o`, `--output` | `string` | `out` | The output directory for the Kubernetes resources |
|
||||
| `--templates` | `string` | | Directory containing transformation templates |
|
||||
| `-t`, `--transformation` | `stringArray` | | Transformation to apply to compose model (default: docker/compose-bridge-kubernetes) |
|
||||
| `-y`, `--yes` | `bool` | | Assume "yes" to the output directory overwrite prompt. For scripts/CI, where no interactive confirmation is possible |
|
||||
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
||||
@@ -15,6 +15,18 @@ Anonymous volumes are not removed by default. However, as they don’t have a st
|
||||
mounted by a subsequent `up`. For data that needs to persist between updates, use explicit paths as bind mounts or
|
||||
named volumes.
|
||||
|
||||
### Pre-start hook containers
|
||||
|
||||
When a `pre_start` lifecycle hook fails, Compose retains its container for post-mortem inspection instead of removing
|
||||
it immediately. `compose down` automatically removes these retained hook containers as part of teardown, so they do
|
||||
not accumulate over time.
|
||||
|
||||
To list retained hook containers before running `down`:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
@@ -43,3 +55,15 @@ Networks and volumes defined as external are never removed.
|
||||
Anonymous volumes are not removed by default. However, as they don’t have a stable name, they are not automatically
|
||||
mounted by a subsequent `up`. For data that needs to persist between updates, use explicit paths as bind mounts or
|
||||
named volumes.
|
||||
|
||||
### Pre-start hook containers
|
||||
|
||||
When a `pre_start` lifecycle hook fails, Compose retains its container for post-mortem inspection instead of removing
|
||||
it immediately. `compose down` automatically removes these retained hook containers as part of teardown, so they do
|
||||
not accumulate over time.
|
||||
|
||||
To list retained hook containers before running `down`:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
```
|
||||
@@ -25,7 +25,7 @@ example-bar-1 alpine "/entrypoint.…" bar 4 seconds ago exited
|
||||
| `-a`, `--all` | `bool` | | Show all stopped containers (including those created by the run command) |
|
||||
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
||||
| [`--filter`](#filter) | `string` | | Filter services by a property (supported filters: status) |
|
||||
| [`--format`](#format) | `string` | `table` | Format output using a custom template:<br>'table': Print output in table format with column headers (default)<br>'table TEMPLATE': Print output in table format using the given Go template<br>'json': Print in JSON format<br>'TEMPLATE': Print output using the given Go template.<br>Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
|
||||
| [`--format`](#format) | `string` | | Format output using a custom template:<br>'table': Print output in table format with column headers (default)<br>'table TEMPLATE': Print output in table format using the given Go template<br>'json': Print in JSON format<br>'TEMPLATE': Print output using the given Go template.<br>Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
|
||||
| `--no-trunc` | `bool` | | Don't truncate output |
|
||||
| `--orphans` | `bool` | `true` | Include orphaned services (not declared by project) |
|
||||
| `-q`, `--quiet` | `bool` | | Only display IDs |
|
||||
|
||||
@@ -21,6 +21,19 @@ If you want to force Compose to stop and recreate all containers, use the `--for
|
||||
If the process encounters an error, the exit code for this command is `1`.
|
||||
If the process is interrupted using `SIGINT` (ctrl + C) or `SIGTERM`, the containers are stopped, and the exit code is `0`.
|
||||
|
||||
### Pre-start hook failures
|
||||
|
||||
When a `pre_start` lifecycle hook exits with a non-zero code, Compose stops the service startup and retains the
|
||||
hook’s container so you can inspect what went wrong:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
$ docker logs <container-id>
|
||||
```
|
||||
|
||||
On the next `compose up`, any retained hook containers for the same service are cleaned up automatically before the
|
||||
hook runs again. Running `compose down` also removes them.
|
||||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
@@ -80,3 +93,16 @@ If you want to force Compose to stop and recreate all containers, use the `--for
|
||||
|
||||
If the process encounters an error, the exit code for this command is `1`.
|
||||
If the process is interrupted using `SIGINT` (ctrl + C) or `SIGTERM`, the containers are stopped, and the exit code is `0`.
|
||||
|
||||
### Pre-start hook failures
|
||||
|
||||
When a `pre_start` lifecycle hook exits with a non-zero code, Compose stops the service startup and retains the
|
||||
hook’s container so you can inspect what went wrong:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
$ docker logs <container-id>
|
||||
```
|
||||
|
||||
On the next `compose up`, any retained hook containers for the same service are cleaned up automatically before the
|
||||
hook runs again. Running `compose down` also removes them.
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
command: docker compose bridge
|
||||
short: Convert compose files into another model
|
||||
long: Convert compose files into another model
|
||||
usage: docker compose bridge CMD [OPTIONS]
|
||||
pname: docker compose
|
||||
plink: docker_compose.yaml
|
||||
cname:
|
||||
|
||||
+12
@@ -39,6 +39,18 @@ options:
|
||||
experimentalcli: false
|
||||
kubernetes: false
|
||||
swarm: false
|
||||
- option: "yes"
|
||||
shorthand: "y"
|
||||
value_type: bool
|
||||
default_value: "false"
|
||||
description: |
|
||||
Assume "yes" to the output directory overwrite prompt. For scripts/CI, where no interactive confirmation is possible
|
||||
deprecated: false
|
||||
hidden: false
|
||||
experimental: false
|
||||
experimentalcli: false
|
||||
kubernetes: false
|
||||
swarm: false
|
||||
inherited_options:
|
||||
- option: dry-run
|
||||
value_type: bool
|
||||
|
||||
Generated
+1
@@ -1,6 +1,7 @@
|
||||
command: docker compose bridge transformations
|
||||
short: Manage transformation images
|
||||
long: Manage transformation images
|
||||
usage: docker compose bridge transformations CMD [OPTIONS]
|
||||
pname: docker compose bridge
|
||||
plink: docker_compose_bridge.yaml
|
||||
cname:
|
||||
|
||||
+12
@@ -14,6 +14,18 @@ long: |-
|
||||
Anonymous volumes are not removed by default. However, as they don’t have a stable name, they are not automatically
|
||||
mounted by a subsequent `up`. For data that needs to persist between updates, use explicit paths as bind mounts or
|
||||
named volumes.
|
||||
|
||||
### Pre-start hook containers
|
||||
|
||||
When a `pre_start` lifecycle hook fails, Compose retains its container for post-mortem inspection instead of removing
|
||||
it immediately. `compose down` automatically removes these retained hook containers as part of teardown, so they do
|
||||
not accumulate over time.
|
||||
|
||||
To list retained hook containers before running `down`:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
```
|
||||
usage: docker compose down [OPTIONS] [SERVICES]
|
||||
pname: docker compose
|
||||
plink: docker_compose.yaml
|
||||
|
||||
@@ -45,7 +45,6 @@ options:
|
||||
swarm: false
|
||||
- option: format
|
||||
value_type: string
|
||||
default_value: table
|
||||
description: |-
|
||||
Format output using a custom template:
|
||||
'table': Print output in table format with column headers (default)
|
||||
|
||||
@@ -20,6 +20,19 @@ long: |-
|
||||
|
||||
If the process encounters an error, the exit code for this command is `1`.
|
||||
If the process is interrupted using `SIGINT` (ctrl + C) or `SIGTERM`, the containers are stopped, and the exit code is `0`.
|
||||
|
||||
### Pre-start hook failures
|
||||
|
||||
When a `pre_start` lifecycle hook exits with a non-zero code, Compose stops the service startup and retains the
|
||||
hook’s container so you can inspect what went wrong:
|
||||
|
||||
```console
|
||||
$ docker ps -a --filter label=com.docker.compose.hook=pre_start
|
||||
$ docker logs <container-id>
|
||||
```
|
||||
|
||||
On the next `compose up`, any retained hook containers for the same service are cleaned up automatically before the
|
||||
hook runs again. Running `compose down` also removes them.
|
||||
usage: docker compose up [OPTIONS] [SERVICE...]
|
||||
pname: docker compose
|
||||
plink: docker_compose.yaml
|
||||
|
||||
Generated
+1
-1
@@ -2,6 +2,6 @@
|
||||
# github.com/moby/buildkit v0.33.0
|
||||
# github.com/docker/buildx v0.37.0
|
||||
# github.com/docker/cli v29.7.2+incompatible
|
||||
# github.com/docker/compose/v5 v5.5.0
|
||||
# github.com/docker/compose/v5 v5.5.1
|
||||
# github.com/docker/model-runner v1.1.36
|
||||
# github.com/docker/docker-agent v1.126.0
|
||||
@@ -10,7 +10,7 @@ go 1.26.5
|
||||
require (
|
||||
github.com/docker/buildx v0.37.0
|
||||
github.com/docker/cli v29.7.2+incompatible
|
||||
github.com/docker/compose/v5 v5.5.0
|
||||
github.com/docker/compose/v5 v5.5.1
|
||||
github.com/docker/docker-agent v1.126.0
|
||||
github.com/docker/model-runner v1.1.36
|
||||
github.com/moby/buildkit v0.33.0
|
||||
|
||||
@@ -144,6 +144,8 @@ github.com/docker/compose/v5 v5.4.0 h1:i0xFmVvWv9QILfRE2PD07GmQqJYjpYAGutafIrJLU
|
||||
github.com/docker/compose/v5 v5.4.0/go.mod h1:bNeEncwZhG0F4MN+0zgln4EA2ILqGZC7knRI8QYJz9U=
|
||||
github.com/docker/compose/v5 v5.5.0 h1:B5Eh5CtlbscCMlbyMydbEj3rpIuP9GthdD7PC0IsvgQ=
|
||||
github.com/docker/compose/v5 v5.5.0/go.mod h1:5yn5qs7G7V7OZc1Kkd6wLz72Le0C45xLNJQ7dgASvMk=
|
||||
github.com/docker/compose/v5 v5.5.1 h1:saWlMxB0tfQ+FVUlWGIUjLvR0jF5cfTU18KI5zKLD/M=
|
||||
github.com/docker/compose/v5 v5.5.1/go.mod h1:I1MDqH4C/vHlbaWcA6A9pKTOBx9vhtQO3hx3e45igDE=
|
||||
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
|
||||
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||
github.com/docker/docker v28.5.2+incompatible h1:DBX0Y0zAjZbSrm1uzOkdr1onVghKaftjlSWt4AFexzM=
|
||||
|
||||
Reference in new issue
Block a user