mirror of https://github.com/docker/docs.git
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
This commit is contained in:
parent
e40a72771f
commit
4b185f9233
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue