# Creating Docker Networks
## Creating Networks Using the CLI
You create networks using `docker network create [OPTIONS] NETWORK` command which accepts the following options:
- `--driver <DRIVER>` indicates the driver that should be used. Defaults to `bridge`.
- `--subnet <SUBNET>`
- `--gateway <GATEWAY IP>`
- `-o` driver specific options (e.g. `-o parent=eth0.20` for `ipvlan` and macvlan `drivers`)
## Creating Networks Using Docker Compose
You create networks in Docker Compose using the `networks:` top-level configuration section. All networks referenced in the Docker Compose file must be listed in the top-level configuration section.
![[Docker Compose#^1qebso]]