From fe3d63afb07b977f7715daea70ed50d809fff243 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Fri, 4 May 2018 08:54:21 +0200 Subject: [PATCH] move some aliases to modern docker syntax --- .aliases | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.aliases b/.aliases index cd1bf17..7bc48b9 100755 --- a/.aliases +++ b/.aliases @@ -9,12 +9,12 @@ alias l='ls -CF' alias feh='feh -d --scale-down' alias camshot='fswebcam -r 640x480 --jpeg 90 -F 3 -D 1 --no-banner' -alias dps='docker ps -a' -alias di='docker images' +alias dps='docker container ls -a' +alias di='docker image ls' alias dv='docker volume ' alias dls='docker volume ls' -alias dip="docker inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with or ID -alias dih="docker inspect -f '{{ .Config.Hostname }}'" # call with or ID +alias dip="docker container inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with or ID +alias dih="docker container inspect -f '{{ .Config.Hostname }}'" # call with or ID alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers -alias drmsc="docker ps -a | grep Exited | awk '{print nil}' | xargs docker rm" # removes stopped containers -alias drmdi="docker rmi "'$(docker images -q -f dangling=true)' # removes non-tagged images +alias drmsc="docker container ls -a | grep Exited | awk '{print nil}' | xargs docker rm" # removes stopped containers +alias drmdi="docker image remove "'$(docker image ls -q -f dangling=true)' # removes non-tagged images