r/java • u/tomayt0 • Jun 10 '26
Testcontainer alternatives to managing Docker containers through Java for a UI app?
I am trying to build an LLM lab that can orchestrate and interact with various LLMs, Tools and a Vector DB locally.
For the SDK and API calls I am using Langchain4j which is straightforward.
However for the dependencies I am currently just managing it manually with docker-compose before starting the application.
I am now wondering if I can use Testcontainers for starting and stopping Docker containers but it feels wrong as its a test library.
--Edit--
There is a Docker Java library but not well advertised on Google
https://github.com/docker-java/docker-java
It might be no issue really to run long lived containers, but interested if there are any alternative libraries or ways to solve this?
View all comments
Show parent comment
9
u/scadgek Jun 10 '26
people forgot how to think when AI arrived... at least we get stuff built I guess