Asim-Tahir / docker.fish

docker.fish is a Fish plugin designed to streamline and simplify common Docker workflows, enhancing the overall Docker experience for fish users.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker.fish

Docker plugin for Oh My Fish and Fisher, based loosely on the Oh My Zsh's Docker Plugin

MIT License Fish Shell v3.6.0 Oh My Fish Framework


Install

Oh My Fish:

omf install https://github.com/Asim-Tahir/docker.fish

Fisher:

fisher install Asim-Tahir/docker.fish

Abbreviations Usage

After installing the docker.fish plugin, can inspect the abbreviations with the following command:

abbr --show | grep dstopa

Image

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

Container

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

Network

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

Volume

Abbreviation Command
dvi docker volume inspect
dvls docker volume ls
dvprune docker volume prune

Everything Else

Abbreviation Command
dpl2 docker pull
dbl docker build
dstopa3 stop all running containers4
dtop docker top

Credit

Base structure heavily inspired from jhillyerd/plugin-git. Thanks for the amazing plugin.

License

MIT © Asim Tahir

Footnotes

  1. 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.

  2. The original abbreviation in Oh My Zsh's Docker plugin for the docker pull command is dpu but renamed as dpl is more meaningful.

  3. The original abbreviation in Oh My Zsh's Docker plugin for the docker stop (docker ps -q) command is dsta but renamed as dstopa is more meaningful.

  4. docker stop (docker ps -q) command stops all running containers.

About

docker.fish is a Fish plugin designed to streamline and simplify common Docker workflows, enhancing the overall Docker experience for fish users.

License:MIT License


Languages

Language:Shell 100.0%