Mercurial > hg > zsh-env
comparison zshrc-docker @ 150:bb583ebb33e6
added another alias for docker
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 12 Nov 2018 13:27:45 +0100 |
parents | fe986adeadeb |
children |
comparison
equal
deleted
inserted
replaced
149:b0424aa12461 | 150:bb583ebb33e6 |
---|---|
6 alias dims="docker images --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}'" | 6 alias dims="docker images --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}'" |
7 alias dlf="docker logs -f" | 7 alias dlf="docker logs -f" |
8 alias doc="docker-compose" | 8 alias doc="docker-compose" |
9 alias doker=docker | 9 alias doker=docker |
10 alias dpa="docker ps -a --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}'" | 10 alias dpa="docker ps -a --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}'" |
11 alias dsh="docker run -it --rm --entrypoint /bin/sh" | |
11 | 12 |
12 dex() { docker exec -it $1 /bin/sh } | 13 dex() { docker exec -it $1 /bin/sh } |
13 | 14 |
14 docker_remove_obsolete_images() { | 15 docker_remove_obsolete_images() { |
15 docker rmi $(docker images --format 'table {{.Repository}} {{.ID}}' | grep -e '^<none>' | awk '{ print $2 }') | 16 docker rmi $(docker images --format 'table {{.Repository}} {{.ID}}' | grep -e '^<none>' | awk '{ print $2 }') |