dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

docker-delete-all (209B)


      1 #!/bin/sh
      2 
      3 [ "$(uname)" = "Linux" ] && dockercmd="sudo docker" || dockercmd=docker
      4 
      5 # Delete all containers
      6 $dockercmd rm "$($dockercmd ps -a -q)"
      7 
      8 # Delete all images
      9 $dockercmd rmi "$($dockercmd images -q)"