docker-java/docker-java — pull request #50 by IrfanAnsari (2014-08-27 13:35:10+00:00)
Title: Added HostConfig as a model class to read the Json configuration from te...

I have added a model class HostConfig where I read following configuration

{ "Binds":null,
"LxcConf":null,
"PortBindings": {
"2181/tcp":
[ {
"HostIp": "192.168.59.103",
"HostPort": "2181"
} ]

},
"PublishAllPorts": false,
"Privileged": false,
"Dns": null,
"VolumesFrom":[],
"ContainerIDFile": null,
"DnsSearch": null,
"Links" : null,
"NetworkMode": null
}

and pass it to client when I start the container. This code I copied it from InspectContainerResponse.

I am using this library in a Maven-Plug-in https://github.com/IrfanAnsari/docker-maven-plugin where original of this is at https://github.com/bibryam/docker-maven-plugin.