Home

Awesome

fish-docker

Abbreviations and completions for docker for the fish shell :fish:.

Installing

Using fisher:

fisher add lewisacidic/fish-docker

Usage

Fish abbreviations replace typed text with an extended command after pressing <Space> or <Enter>.

Docker

abbreviationresult
dkdocker
dkadocker attach
dkbdocker build
dkddocker diff
dkdfdocker system df
dkedocker exec
dkEdocker exec -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t
dkhdocker history
dkidocker images
dkindocker inspect
dkimdocker import
dkkdocker kill
dkkhdocker kill -s HUP
dkldocker logs
dkLdocker logs -f
dklidocker login
dklodocker logout
dklsdocker ps
dkpdocker pause
dkPdocker unpause
dkpldocker pull
dkphdocker push
dkpsdocker ps
dkpsadocker ps -a
dkrdocker run
dkRdocker run -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t --rm
dkRedocker run -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t --rm --entrypoint /bin/bash
dkRMdocker system prune
dkrmdocker rm
dkrmidocker rmi
dkrndocker rename
dksdocker start
dkSdocker restart
dkssdocker stats
dksvdocker save
dktdocker tag
dktopdocker top
dkupdocker update
dkVdocker volume
dkvdocker version
dkwdocker wait
dkxdocker stop

Container

abbreviationresult
dkCdocker container
dkCadocker container attach
dkCcpdocker container cp
dkCddocker container diff
dkCedocker container exec
dkCEdocker container exec -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t
dkCindocker container inspect
dkCkdocker container kill
dkCldocker container logs
dkCLdocker container logs -f
dkClsdocker container ls
dkCpdocker container pause
dkCprdocker container prune
dkCrndocker container rename
dkCSdocker container restart
dkCrmdocker container rm
dkCrdocker container run
dkCRdocker container run -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t --rm
dkCRedocker container run -e COLUMNS=(tput cols) -e LINES=(tput lines) -i -t --rm --entrypoint /bin/bash
dkCsdocker container start
dkCssdocker container stats
dkCxdocker container stop
dkCtopdocker container top
dkCPdocker container unpause
dkCupdocker container update
dkCwdocker container wait

Image

abbreviationresult
dkIdocker image
dkIbdocker image build
dkIhdocker image history
dkIimdocker image import
dkIindocker image inspect
dkIlsdocker image ls
dkIprdocker image prune
dkIpldocker image pull
dkIphdocker image push
dkIrmdocker image rm
dkIsvdocker image save
dkItdocker image tag

Volume

abbreviationresult
dkVdocker volume
dkVindocker volume inspect
dkVlsdocker volume ls
dkVprdocker volume prune
dkVrmdocker volume rm

Network

abbreviationresult
dkNdocker network
dkNsdocker network connect
dkNxdocker network disconnect
dkNindocker network inspect
dkNlsdocker network ls
dkNprdocker network prune
dkNrmdocker network rm

System

abbreviationresult
dkYdocker system
dkYdfdocker system df
dkYprdocker system prune

Stack

abbreviationresult
dkKdocker stack
dkKlsdocker stack ls
dkKpsdocker stack ps
dkKrmdocker stack rm

Swarm

abbreviationresult
dkWdocker swarm

Machine

abbreviationresult
dkmdocker-machine
dkmadocker-machine active
dkmcpdocker-machine scp
dkmindocker-machine inspect
dkmipdocker-machine ip
dkmkdocker-machine kill
dkmlsdocker-machine ls
dkmprdocker-machine provision
dkmpsdocker-machine ps
dkmrgdocker-machine regenerate-certs
dkmrmdocker-machine rm
dkmsdocker-machine start
dkmshdocker-machine ssh
dkmstdocker-machine status
dkmSdocker-machine restart
dkmudocker-machine url
dkmupdocker-machine upgrade
dkmvdocker-machine version
dkmxdocker-machine stop

Compose

abbreviationresult
dkcdocker-compose
dkcbdocker-compose build
dkcBdocker-compose build --no-cache
dkcddocker-compose down
dkcedocker-compose exec -e COLUMNS=(tput cols) -e LINES=(tput lines)
dkckdocker-compose kill
dkcldocker-compose logs
dkcLdocker-compose logs -f
dkclsdocker-compose ps
dkcpdocker-compose pause
dkcPdocker-compose unpause
dkcpldocker-compose pull
dkcphdocker-compose push
dkcpsdocker-compose ps
dkcrdocker-compose run -e COLUMNS=(tput cols) -e LINES=(tput lines)
dkcRdocker-compose run -e COLUMNS=(tput cols) -e LINES=(tput lines) --rm
dkcrmdocker-compose rm
dkcsdocker-compose start
dkcscdocker-compose scale
dkcSdocker-compose restart
dkcudocker-compose up
dkcUdocker-compose up -d
dkcvdocker-compose version
dkcxdocker-compose stop

Cleanup scripts

abbreviationresult
dkrmCdocker rm $(docker ps -qaf status=exited)
dkrmIdocker rmi $(docker images -qf dangling=true)
dkplI`docker images --format "{{ .Repository }}"
dkrmVdocker volume rm $(docker volume ls -qf dangling=true)

Development

To update the completions, run

fish scripts/update-completions.fish