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

Feature Request: Support multiple, remote Docker hosts #49

Closed
Famku opened this issue Jan 11, 2025 · 8 comments
Closed

Feature Request: Support multiple, remote Docker hosts #49

Famku opened this issue Jan 11, 2025 · 8 comments
Labels
enhancement New feature or request

Comments

@Famku
Copy link

Famku commented Jan 11, 2025

Hi,

nice app.

Is it possible to add remote hosts via tcp?

@AlexGustafsson
Copy link
Owner

Thanks. Are you referring to Docker hosts? The current intention is for Cupdate to handle one host. But I don't see an issue with that being a remote one.

@AlexGustafsson AlexGustafsson added the enhancement New feature or request label Jan 12, 2025
@Famku
Copy link
Author

Famku commented Jan 12, 2025

One dasboard for multiple docker hosts, like dozzle

@AlexGustafsson AlexGustafsson changed the title remote hosts Feature Request: Support multiple, remote Docker hosts Jan 12, 2025
@AlexGustafsson
Copy link
Owner

AlexGustafsson commented Jan 12, 2025

@Famku is it important for you to know on which host Cupdate found the image? It would probably be quite easy to support multiple remote Docker hosts. Cupdate would still graph all the dependencies correctly - no matter on what host they were found. It would require additional work to also track the host of each image as the original intention was for Cupdate to scan the platform it's running on. If you're using Docker Swarm I think it should already work out of the box.

@Famku
Copy link
Author

Famku commented Jan 12, 2025

I would be good to know on which host Cupdate found the image, but it is not very important.

@AlexGustafsson
Copy link
Owner

AlexGustafsson commented Jan 12, 2025

I've got the initial support implemented now, without support for knowing the origin host. Please try it out and use this issue to report any problems you face. The changes are available in the latest tag.

CUPDATE_DOCKER_HOST=tcp://localhost:8080

You can also specify multiple hosts. Useful if you're running Cupdate on one host and want to monitor another as well.

CUPDATE_DOCKER_HOST=unix:///var/run/docker.sock,tcp://localhost:8080

@Famku
Copy link
Author

Famku commented Jan 12, 2025

It works - thank you for this quick implementation

but tcp port should be 2375 not 8080

@AlexGustafsson
Copy link
Owner

but tcp port should be 2375 not 8080

Thanks for clarifying that. There are no default ports, I just used 8080 as an example.

@AlexGustafsson
Copy link
Owner

Closing as completed via #58. Thanks for reporting the issue.

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