Networks

82

# Remove network by name or ID.
docker network rm my_network2
docker network rm 6466079abd47
# List all networks.
docker network ls

# Filter output using "-f" or "--filter".
docker network ls -f "driver=bridge"
docker network ls --filter "driver=bridge"

# Display only network ID using "-q" or "--quiet".
docker network ls -q -f "driver=bridge"
docker network ls --quiet --filter "driver=bridge"
# Remove unused networks.
docker network prune

# Force prune  using "-f" or "--force".
docker network prune -f
docker network prune --force

Comments

Submit
0 Comments