dot/.config/aliasrc/docker

17 lines
549 B
Text
Raw Normal View History

2024-02-21 13:06:01 +01:00
# docker
if [ -x "$(which docker)" ]; 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