|
|
|
@ -127,12 +127,16 @@ alias dkW='docker swarm'
|
|
|
|
|
## CleanUp (rm)
|
|
|
|
|
# Clean up exited containers (docker < 1.13)
|
|
|
|
|
alias dkrmC='docker rm $(docker ps -qaf status=exited)'
|
|
|
|
|
|
|
|
|
|
# Clean up dangling images (docker < 1.13)
|
|
|
|
|
alias dkrmI='docker rmi $(docker images -qf dangling=true)'
|
|
|
|
|
|
|
|
|
|
# Pull all tagged images
|
|
|
|
|
alias dkplI='docker images --format "{{ .Repository }}" | grep -v "^<none>$" | xargs -L1 docker pull'
|
|
|
|
|
|
|
|
|
|
# Clean up dangling volumes (docker < 1.13)
|
|
|
|
|
alias dkrmV='docker volume rm $(docker volume ls -qf dangling=true)'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Docker Machine (m)
|
|
|
|
|
alias dkm='docker-machine'
|
|
|
|
|
alias dkma='docker-machine active'
|
|
|
|
|