Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to configure different servers to manage the Dockers and have then split on "tabs" #504

Closed
victorguidi opened this issue Dec 29, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@victorguidi
Copy link

Hey, hope everyone is doing great!

The company I work for has pretty much everything running on premise. One of my tasks is to manage dockers running on all of our servers, currently 5 with over 50 docker containers split on the servers.

I was considering implementing my own lazydocker until I came across this project, which is fantastic, congrats to everyone who contributed so far!!
But back to the Issue, my intention was to implement my own lazydocker but with a feature that would allow me to have all my servers configured as tabs, so if I hit 1 I would be managing all dockers on my local machine, but if I hit 2 I would be able to manage all the dockers on server 11.11.55... You got the idea?

Before I open this issue I started working on something, I was for each IP configured in a yml file, I opened a SSH instance in separate routines and send the docker commands to then. Then I saved the result and kept all the information for each docker in the different machines (in the tabs) so when I hit the number of the tab I would have already all the info. The problem of course is that I would have to keep the ssh session open in order to offer a more smooth feeling for the user.

Would you consider this feature something suitable and doable for the current state of Lazydocker?

I am definitely willing to contribute to this feature, if thats something that you guys consider interesting in implementing in!

@victorguidi victorguidi added the enhancement New feature or request label Dec 29, 2023
@mark2185
Copy link
Contributor

Would the same be achieved if you pointed the DOCKER_HOST variable to a specific server and then launched lazydocker?

I.e. you'd have 5 terminals, and run DOCKER_HOST=11.11.55.66 lazydocker in one, DOCKER_HOST=4.4.6.6 lazydocker in the other etc. instead of having tabs in lazydocker, you'd have lazydocker in tabs?

@victorguidi
Copy link
Author

Hey there, happy new year!

Yeah that would work too

I mean I usually use tmux or Zellij so I could manage multiple sessions of lazydocker in different terminals if needed.

For the server credentials, would that also be set in an environment variable? The idea of a yml file would be to set all servers and credentials in one place. But I wouldn't mind to set as individual variables too!!

By the way, is this variable for docker host already available to be set?

@mark2185
Copy link
Contributor

mark2185 commented Jan 2, 2024

For the server credentials, would that also be set in an environment variable? The idea of a yml file would be to set all servers and credentials in one place. But I wouldn't mind to set as individual variables too!!

Credentials of what sort exactly? I'd guess one could specify user@ip, but not passwords.

By the way, is this variable for docker host already available to be set?

Yes! It's been there for a while, feel free to try it out!

@victorguidi
Copy link
Author

The ssh package in golang has all the methods for authentication if I am not wrong, I guess for credentials here I meant authentication

But its okay, this solution already works here like a charm.

Thank you so much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants