Giter Club home page Giter Club logo

Comments (8)

jesseduffield avatar jesseduffield commented on April 29, 2024 4

currently if you hit 'c' it brings up custom commands, of which one is the sh command, however that switches you into a fullscreen bash prompt. I really would love to have stuff like bash run in the main panel on the right, but it's actually quite a tricky problem to solve, given that you basically need to get a pseudo terminal and then interpret all of the ansi escape codes in order to render the ascii characters in the panel. But it is probably top of my long-term priorities after supporting podman

from lazydocker.

mudasar187 avatar mudasar187 commented on April 29, 2024

Next to the tabs Logs | Stats | Container Config | Top I was thinking it would be pretty neat to have one called shell, when you click it it could execute docker-compose <container> exec sh and that box can become a repl?

BTW, thank you for this project 🎊 I've been using it for a day and it's amazing!

That would be amazing to have! :D

from lazydocker.

markphip avatar markphip commented on April 29, 2024

currently if you hit 'c' it brings up custom commands, of which one is the sh command, however that switches you into a fullscreen bash prompt. I really would love to have stuff like bash run in the main panel on the right, but it's actually quite a tricky problem to solve, given that you basically need to get a pseudo terminal and then interpret all of the ansi escape codes in order to render the ascii characters in the panel. But it is probably top of my long-term priorities after supporting podman

FWIW, this works pretty well. Might just be nice if there were a direct shortcut for this specific option (to get a shell)? This is not bad at all though as is.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 29, 2024

@markphip I've made an issue for this #101. I'm aware that it's not strictly necessary for this thing to be a custom command, though I think it's a good basis for showing users how they can configure this stuff themselves, by setting some exemplar defaults

from lazydocker.

markphip avatar markphip commented on April 29, 2024

Makes sense. I was mainly commenting on the shell behavior though. I find what you are currently doing works pretty well in practice.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 29, 2024

good to hear :)

from lazydocker.

gggeek avatar gggeek commented on April 29, 2024

Btw: I tried getting shell access into the lazydocker container itself, and it failed with error message:

OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: "/bin/sh": stat /bin/sh: no such file or directory"

It seems to me an useful feature to be able to drop to a shell into the lazydocker container, to be able to snoop around, learn and troubleshoot. Shall I open a separate bug/feature request ?

from lazydocker.

jesseduffield avatar jesseduffield commented on April 29, 2024

@gggeek sounds like /bin/sh isn't actually a program defined in your container. Not sure how best to get around that

from lazydocker.

Related Issues (20)

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.