diff --git a/content/compose/compose-file/06-networks.md b/content/compose/compose-file/06-networks.md index 77cbd869c7..6f5bf750c1 100644 --- a/content/compose/compose-file/06-networks.md +++ b/content/compose/compose-file/06-networks.md @@ -70,46 +70,10 @@ driver is not available on the platform. ```yml networks: db-data: - driver: overlay + driver: bridge ``` -Compose supports the following drivers: -`none` and `host` - -- `host`: Use the host's networking stack. -- `none`: Turn off networking. - -#### host or none - -The syntax for using built-in networks such as `host` and `none` is different, as such networks implicitly exist outside -the scope of Compose. To use them, you must define an external network with the name `host` or `none` and -an alias that Compose can use (`hostnet` and `nonet` in the following example), then grant the service -access to that network using its alias. - -```yml -services: - web: - networks: - hostnet: {} - -networks: - hostnet: - external: true - name: host -``` - -```yml -services: - web: - ... - networks: - nonet: {} - -networks: - nonet: - external: true - name: none -``` +For more information on drivers and available options, see [Network drivers](../../network/drivers/_index.md). ### driver_opts