Start a container attached to a chosen network.
Section: Networks
Run on a specific network
bash
bash
docker run -d --name api --network app-net myapi:latestExplanation
Useful for service discovery between app containers.
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