This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# List host IDs for running containers | |
for i in $(docker ps -q); do docker inspect --format '{{ .State.Pid }}' $i; done | |
# Swap usage | |
# awk '/VmSwap/{print $2 " " $3}' /proc/<PID>/status |
OlderNewer