Skip to content

Instantly share code, notes, and snippets.

@Shwebs
Shwebs / helm-cheatsheet.md
Created November 2, 2021 14:12 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@Shwebs
Shwebs / checkDockerDisks.sh
Created February 6, 2020 22:21 — forked from robsonke/checkDockerDisks.sh
This Bash script will loop through all running docker containers on a host and list the disk usage per mount. In case it's breaching the 65%, it will email you.
#!/bin/bash
# get all running docker container names
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"