How to connect to Docker?
Option 1: Thick clients, We can start/stop/build containers and lot more.
This is recommended when we need to do heavy lifting work with containers.
Option 2: Thin Client:
HTTPClient is good enough, when Docker exposes services.
This is more appropriate way to design docker container and communicate with docker container.
Option 3: Using Java Shell and hitting docker commands.
This is not recommended when loading/unloading process is costly.
Also assuming that docker is available in shell.
Option 4: Using Docker REST urls
This gives more control on Docker container. Useful to deal with low level.
Docker is keep on changing their interfaces and causing trouble to developers/production systems.