Create a network with a custom subnet.
Section: Networks
Create network with subnet
bash
bash
docker network create --subnet 172.20.0.0/16 app-netExplanation
Useful when you need predictable IP ranges.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Networks