GithubHelp home page GithubHelp logo

mikescher / better-docker-ps Goto Github PK

View Code? Open in Web Editor NEW
85.0 85.0 2.0 549 KB

Because `docker ps` is annoying and does not fit my monitor/terminal width

License: MIT License

Makefile 3.78% Go 87.16% Shell 8.43% Ruby 0.63%

better-docker-ps's People

Contributors

batman313v avatar mikescher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

better-docker-ps's Issues

Uploading `dops` to package managers

Hello!

First of all, thank you for this tool! I absolutely love it! It makes quickly grasping docker ps so much easier that looking at it's output is pure pleasure.

I've a question/suggestion.
Would you be interested in uploading dops to package managers? I personally would be interested in AUR entries.

Thanks

Option parsing of docker ps command is incorrect with concatenated option flags

If we pass more option flags to the docker ps command in the concatenated short-form style, e.g. docker ps -aq where the -q flag is concatenated with the -a flag to result in the combined -aq flag, we do not get the correct output from dops.

As an example, if we have the following situation

$ docker ps -a
CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                     PORTS     NAMES
030aa141e0bc   nginx     "/docker-entrypoint.…"   4 minutes ago   Exited (0) 3 minutes ago             website

dops -a works absolutely fine.

$ dops -a
CONTAINER ID    NAME       IMAGE    TAG    CREATED AT (+01:00 BST)    STATE       STATUS                      PUBLISHED PORTS
------------    -------    -----    ---    -----------------------    --------    ------------------------    ---------------
030aa141e0bc    website    nginx           2023-05-18 16:00:36        [EXITED]    Exited (0) 4 minutes ago

while, the -aq combined flag does not produce the correct output. With docker ps -aq, we get the container ID as expected i.e. 030aa141e0bc.

However, dops -aq produces an empty output. The long form, dops -a -q does work correctly though. The bash/zsh/fish alias functions are also correspondingly broken.

usage

Very good work, thank you for that.

Maybe I do not understand the --help fully, but as soon as I use the --format flag it turns out to look like the original "docker ps". For my use case it would be very handy to drop several columns used in dops and add others given in help. Therefore I'd like --format using as a customizable of showing columns.

Thanks anyways for your work, This helps me a lot

Feature: docker compose ps

A lot of times, docker compose ps looks as worse as docker ps. Can you make this program work with docker compose ps too?

Adding --compose flag and have that aliased to docker compose ps in the shell configuration files should be sufficient.

Feature: Sorting by column

Looked around, couldn't find anything that would allow sorting by column. Specifically container name, alphabetical would be great to easily locate a container.

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.