I'm in the process of building a custom runner to manage container operations like pulling images, starting, and stopping containers remotely. I'm currently implementing everything in Python, but it feels like I'm reinventing the wheel. Are there any open-source tools available that can help with this?
4 Answers
Definitely check out container orchestrators! Kubernetes is the big name in this space, though I understand if you want to avoid it for now because it can be a bit overkill for basic functions.
You might want to look into using the Docker Daemon and the Engine API. They provide a lot of functionality for interacting with containers. You can find more info in the Docker API documentation. For your needs, accessing the API over SSH could be the way to go. Pairing it with something like Portainer can give you a nice UI, and using Ansible could help with automating those operations without much hassle.
Have you checked out Komodo? It has some decent features for managing containers remotely as well. Might be worth looking into!
I personally use Dockge for remote management. Super straightforward and should cover your needs pretty well!

Exactly! Using the Docker Engine API over SSH is a solid choice. Setting up something like Docker context can really simplify your workflow. If you ever need a REST layer, DreamFactory is a great addition to take care of container actions along with your DB.