Advertisement
lucasteles42

Clean docker

Jun 25th, 2022
1,075
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias compose-force-reset='docker compose ls --format=json | jq ".[].ConfigFiles" --raw-output | tr -d "\n" |  xargs -d "," -I "compose_file"  docker-compose -f "compose_file" down --remove-orphans'
  2. alias docker-up-rm="docker-compose rm -fsv; docker-compose up && docker-compose rm -fsv"
  3. alias docker-force-reset="compose-force-reset; docker rm -f $(docker ps -q -a);docker system prune -fa"
  4.  
Advertisement
RAW Paste Data Copied
Advertisement