Comments (8)
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.
Next to the tabs
Logs | Stats | Container Config | Top
I was thinking it would be pretty neat to have one calledshell
, when you click it it could executedocker-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.
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.
@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.
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.
good to hear :)
from lazydocker.
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.
@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)
- Changed DOCKERFILE with existing hub image
- After running lazydocker, docker completely breaks and it starts to require root permissions HOT 2
- Cannot install on Debian 5.10.197-1 via curl .sh HOT 2
- Custom Colors/Theme Config
- Possibility to configure different servers to manage the Dockers and have then split on "tabs" HOT 4
- Request: View only mode
- Enhance Image Section with Active Use Indicator HOT 2
- Connecting to remote docker host over ssh is broken
- XDG base directory specification is not described in the config docs HOT 1
- Config options for side panel visibility / size HOT 1
- Rounded Corners
- can't install following README instructions HOT 1
- Installing on arch linux using yay fails HOT 4
- Can I pass a flag to set the Project Name to something ?
- Cannot proceed until docker gives us more information about the container. Please retry in a few moments.
- Move the panel with number like lazygit HOT 1
- Container log colors HOT 1
- Selectable Logs/Stats/Env/Config/Top HOT 2
- Inquiry about Memory Usage in LazyDocker HOT 1
- Issue while connecting to remote docker socket HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazydocker.