Docker
plugin for Oh My Fish and Fisher, based loosely on the Oh My Zsh's Docker Plugin
omf install https://github.com/Asim-Tahir/docker.fish
fisher install Asim-Tahir/docker.fish
After installing the docker.fish
plugin, can inspect the abbreviations with the following command:
abbr --show | grep dstopa
Abbreviation | Command |
---|---|
dib |
docker image build |
dii |
docker image inspect |
dils |
docker image ls |
dis |
docker images |
dipu |
docker image push |
dirm |
docker image rm |
ddrmi |
remove all unused images1 |
dit |
docker image tag |
Abbreviation | Command |
---|---|
dcin |
docker container inspect |
dcls |
docker container ls |
dclsa |
docker container ls -a |
dps |
docker ps |
dpsa |
docker ps -a |
dlo |
docker container logs |
dpo |
docker container port |
dr |
docker container run |
drit |
docker container run -it |
drm |
docker container rm |
drm! |
docker container rm -f |
dst |
docker container start |
drs |
docker container restart |
dstp |
docker container stop |
dxc |
docker container exec |
dxcit |
docker container exec -it |
Abbreviation | Command |
---|---|
dnc |
docker network create |
dncn |
docker network connect |
dndcn |
docker network disconnect |
dni |
docker network inspect |
dnls |
docker network ls |
dnrm |
docker network rm |
Abbreviation | Command |
---|---|
dvi |
docker volume inspect |
dvls |
docker volume ls |
dvprune |
docker volume prune |
Abbreviation | Command |
---|---|
dpl 2 |
docker pull |
dbl |
docker build |
dstopa 3 |
stop all running containers4 |
dtop |
docker top |
Base structure heavily inspired from jhillyerd/plugin-git
. Thanks for the amazing plugin.
Footnotes
-
docker rmi (docker images --filter "dangling=true" -q --no-trunc)
command removes all dangling images, which are untagged images that are not referenced by any container. ↩ -
The original abbreviation in
Oh My Zsh
's Docker plugin for thedocker pull
command isdpu
but renamed asdpl
is more meaningful. ↩ -
The original abbreviation in
Oh My Zsh
's Docker plugin for thedocker stop (docker ps -q)
command isdsta
but renamed asdstopa
is more meaningful. ↩ -
docker stop (docker ps -q)
command stops all running containers. ↩