Zum Inhalt springen
Developer Snippets

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results
  • Search for a string in files and save the result
  • Zip files and exclude subdirectories

Kategorien

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Schlagwort: network

Docker commands to clear some things

To clear containers:

docker rm -f $(docker ps -a -q)

To clear images:

docker rmi -f $(docker images -a -q)

To clear volumes:

docker volume rm $(docker volume ls -q)

To clear networks:

docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')

Veröffentlicht am 13. Februar 2019Kategorien DockerSchlagwörter clear, containers, Docker, images, network, remove, volumes
Stolz präsentiert von WordPress