How to configure firewall on user defined Docker bridge?
Elaborating on Marek's Answer of setting the bridge name at creation time.
docker network create --driver bridge -o \
"com.docker.network.bridge.name"="mynetwork_name" mynetwork
or if using a docker-compose file the following in the networks section
version: '3'
.
.
.
networks:
mynetwork:
driver_opts:
com.docker.network.bridge.name: mynetwork_name