Yes Liang,

try with

      ContextBuilder builder = ContextBuilder.newBuilder(provider)
                                             .credentials(identity,
credential)
                                             .endpoint("
http://172.22.22.22:2375";)
                                             .modules(modules)
                                             .overrides(properties);

assuming that you have enabled the docker remote API over tcp

You can find a lot on the internet about that, but as an example, if your
docker engine runs on Ubuntu you can update DOCKER_OPTS in
/etc/init/docker.conf:

DOCKER_OPTS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock'

and then

service docker restart

HTH,
Andrea




On Fri, Aug 8, 2014 at 2:25 AM, liang cheng <liang.ch...@gmail.com> wrote:

> [github on Bcc]
>
> Hi Andrea,
>
> Actually what I meant is how to specify the "Linux host" in the diagram of
> this link <http://jclouds.apache.org/guides/docker/>.For example, I'm
> working on workstation (172.11.11.11) and want to create docker container
> at a LInux host (172.22.22.22). How do I pass "172.22.22.22" to
> jclouds-docker API ? Using "endpoint" ? Please advise it.
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 11:33 PM, Andrea Turli <notificati...@github.com>
> wrote:
>
> > By default, Docker assigns a NAT'ed IP to the created container which is
> > parsed in the Container domain class
> >
> > If you need more advanced networking configuration you can try
> > http://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/ or
> > https://docs.docker.com/articles/networking/ but those are untested
> > solutions out of the scope of jclouds, at the moment.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <
> https://github.com/jclouds/jclouds-labs/commit/9b124ee9f12e0392b6d2f083308297bfcca8ea79#commitcomment-7297454
> >
> > .
> >
>

Reply via email to