Docker.fish
Docker abbreviations plugin for Fish shell
Install / Use
/learn @Asim-Tahir/Docker.fishREADME
docker.fish
<br/>
Dockerplugin for Oh My Fish and Fisher, based loosely on the Oh My Zsh's Docker Plugin
Install
omf install https://github.com/Asim-Tahir/docker.fish
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 images[^1] |
| 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 |
| ------------ | ------------------------------- |
| dpl[^2] | docker pull |
| dbl | docker build |
| dstopa[^3] | stop all running containers[^4] |
| dtop | docker top |
Credit
Base structure heavily inspired from jhillyerd/plugin-git. Thanks for the amazing plugin.
License
[^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.
