Last active
June 30, 2019 04:04
-
-
Save rocka/f1e044f45849d97cde48192bfcde5794 to your computer and use it in GitHub Desktop.
docker helper functions for fish shell
This file contains 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
# Docker helper functions for fish shell | |
function docker-update --description 'pull all :latest images' | |
docker images --format '{{.Repository}}:{{.Tag}}' | egrep ':(latest|alpine)' | xargs -L1 docker pull | |
end | |
function docker-clean --description 'remove all none-taged images' | |
docker rmi (docker images | grep '<none>' | awk '{print $3}') | |
end | |
alias ddd='docker-compose down; docker-compose up -d' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment