Skip to content

Commit a03b7ea

Browse files
authored
Update tutorial-multicontainer.md
Removed the top-level `version` element from the Docker compose files, since [It's officially obsolete](https://docs.docker.com/compose/compose-file/04-version-and-name/#version-top-level-element-optional) and results in `docker-compose.yml: `version` is obsolete"` and similar warnings in the output
1 parent 86591b0 commit a03b7ea

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/containers/tutorial-multicontainer.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ Add a project to the same solution and call it *MyWebAPI*. Select **API** as the
218218
The *docker-compose.yml* appears as follows:
219219

220220
```yaml
221-
version: '3.4'
222-
223221
services:
224222
webfrontend:
225223
image: ${DOCKER_REGISTRY-}webfrontend
@@ -242,8 +240,6 @@ Add a project to the same solution and call it *MyWebAPI*. Select **API** as the
242240
Visual Studio makes some changes to your Docker Compose YML file. Now both services are included.
243241

244242
```yaml
245-
version: '3.4'
246-
247243
services:
248244
webfrontend:
249245
image: ${DOCKER_REGISTRY-}webfrontend
@@ -344,8 +340,6 @@ Congratulations, you're running a Docker Compose application with a custom Docke
344340
The *docker-compose.yml* appears as follows:
345341

346342
```yaml
347-
version: '3.4'
348-
349343
services:
350344
webfrontend:
351345
image: ${DOCKER_REGISTRY-}webfrontend
@@ -368,8 +362,6 @@ Congratulations, you're running a Docker Compose application with a custom Docke
368362
Visual Studio makes some changes to your `docker-compose` YML file. Now both services are included.
369363

370364
```yaml
371-
version: '3.4'
372-
373365
services:
374366
webfrontend:
375367
image: ${DOCKER_REGISTRY-}webfrontend

0 commit comments

Comments
 (0)