2024-02-21 13:06:01 +01:00
|
|
|
# docker
|
2024-07-15 20:58:29 +02:00
|
|
|
if type docker &>/dev/null; then
|
2024-07-03 15:08:24 +02:00
|
|
|
alias dc='docker compose'
|
2024-02-21 13:06:01 +01:00
|
|
|
|
|
|
|
alias killdocker='docker kill $(docker ps -q)'
|
|
|
|
alias cleardocker='docker system prune && docker volume prune'
|
|
|
|
alias balancedocker='sudo btrfs filesystem balance /var/lib/docker'
|
|
|
|
|
|
|
|
# if macos i manage docker manually, because it drains battery and ram
|
|
|
|
if [ "$(uname)" = "Darwin" ]; then
|
|
|
|
alias startdocker='open -a Docker'
|
|
|
|
alias stopdocker="pkill -SIGHUP -f /Applications/Docker.app 'docker serve'"
|
|
|
|
alias sd='startdocker'
|
|
|
|
alias ssd='startdocker'
|
|
|
|
fi
|
|
|
|
fi
|