“Netzwerke” Code-Antworten

Netzwerke

# 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"
Excited Eland

Netzwerke

# Remove unused networks.
docker network prune

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

Netzwerke

# Remove network by name or ID.
docker network rm my_network2
docker network rm 6466079abd47
Excited Eland

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen