|
9 | 9 | - /compose/migrate/ |
10 | 10 | --- |
11 | 11 |
|
12 | | -From July 2023 Compose v1 stopped receiving updates. It’s also no longer available in new releases of Docker Desktop. |
| 12 | +From July 2023, Compose v1 stopped receiving updates. It’s also no longer available in new releases of Docker Desktop. |
13 | 13 |
|
14 | 14 | Compose v2, which was first released in 2020, is included with all currently supported versions of Docker Desktop. It offers an improved CLI experience, improved build performance with BuildKit, and continued new-feature development. |
15 | 15 |
|
@@ -52,7 +52,7 @@ For example, running the Compose command `-p myproject up --scale=1 svc` results |
52 | 52 |
|
53 | 53 | > [!TIP] |
54 | 54 | > |
55 | | ->In Compose v2, the global `--compatibility` flag or `COMPOSE_COMPATIBILITY` environment variable preserves the Compose v1 behavior to use underscores (`_`) as the word separator. |
| 55 | +> In Compose v2, the global `--compatibility` flag or `COMPOSE_COMPATIBILITY` environment variable preserves the Compose v1 behavior to use underscores (`_`) as the word separator. |
56 | 56 | As this option must be specified for every Compose v2 command run, it's recommended that you only use this as a temporary measure while transitioning to Compose v2. |
57 | 57 |
|
58 | 58 | ### Command-line flags and subcommands |
@@ -107,7 +107,7 @@ However, Docker Desktop continues to support a `docker-compose` alias to redirec |
107 | 107 |
|
108 | 108 | ### Migrating running projects |
109 | 109 |
|
110 | | -In both v1 and v2, running `up` on a Compose project recreates service containers as necessary to reach the desired state based on comparing the actual state in the Docker Engine to the resolved project configuration including Compose YAML, environment variables, and command-line flags. |
| 110 | +In both v1 and v2, running up on a Compose project recreates service containers as needed. It compares the actual state in the Docker Engine to the resolved project configuration, which includes the Compose YAML, environment variables, and command-line flags. |
111 | 111 |
|
112 | 112 | Because Compose v1 and v2 [name service containers differently](#service-container-names), running `up` using v2 the first time on a project with running services originally launched by v1, results in service containers being recreated with updated names. |
113 | 113 |
|
|
0 commit comments