Follow these steps:
- Create a new custom bridge with the name br0:
$ docker network create br0 --subnet 192.168.2.1/24
- Confirm that the network has been created:
$ docker network ls
- Start a container using the new network and make sure that it is using the correct subnet:
$ docker container run -d --network br0 --name br0demo redis
$ docker container inspect br0demo