From 21f9086699a75fed299b044eeb6abc990433272b Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:32:59 +0000 Subject: [PATCH] ENGDOCS-1968 (#19276) * ENGDOCS-1968 * add link --- content/compose/compose-file/06-networks.md | 40 ++------------------- 1 file changed, 2 insertions(+), 38 deletions(-) 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