'How to disable ipv6 from my docker bridge and docker network

I'm currently using docker 20.10.9 version. My host is enabled with ipv4 but when I run the docker I get the following error.

Error Image

How can we disable ipv6 by default? as I have ipv4 enabled on my host



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source