docker network create --label env=prod mynet

Category: Docker

docker network create --label env=prod mynet

Create a network with labels

Labels tag the network with key-value metadata, here env=prod, so you can filter and manage networks by environment. View them with docker network inspect. Filters like docker network ls --filter label=env=prod select them.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.