Git Product home page Git Product logo

asim-tahir / docker.fish Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

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

Shell 100.00%
fish-plugin fish-shell fisher oh-my-fish oh-my-fish-plugin ohmyfish fisher-plugin ohmyfish-plugin abbr abbreviation abbreviations docker docker-fish

docker.fish's Introduction

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.

docker.fish's People

Contributors

asim-tahir avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.