Skip to content

Instantly share code, notes, and snippets.

@rocka
Last active June 30, 2019 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocka/f1e044f45849d97cde48192bfcde5794 to your computer and use it in GitHub Desktop.
Save rocka/f1e044f45849d97cde48192bfcde5794 to your computer and use it in GitHub Desktop.
docker helper functions for fish shell
# 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