From 4b185f9233ea4faec5ab64fd1e12aeec210ea927 Mon Sep 17 00:00:00 2001 From: MessaoudiM Date: Thu, 6 May 2021 22:00:22 +0200 Subject: [PATCH] Update networking.md Following the example will produce: WARN[0000] network my-pre-existing-network: network.external.name is deprecated in favor of network.name https://github.com/docker/docker.github.io/issues/6453 --- compose/networking.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/networking.md b/compose/networking.md index a983bd4176..e6e80b51cd 100644 --- a/compose/networking.md +++ b/compose/networking.md @@ -184,8 +184,8 @@ services: # ... networks: default: - external: - name: my-pre-existing-network + external: true + name: my-pre-existing-network ``` Instead of attempting to create a network called `[projectname]_default`, Compose looks for a network called `my-pre-existing-network` and connect your app's containers to it.