Home > other >  1.12 servie docker swarm the create and overlay network related problems
1.12 servie docker swarm the create and overlay network related problems

Time:09-25

I just contact this aspect, after building swarm clusters some doubt:
1.
Docker service create - name t3 - constraint 'node. The hostname==swarm1 daocloud. IO/library/ubuntu: trusty - 20151208/bin/bash
On my manager in the language you want to create a specified node service,

To view the service
ID NAME REPLICAS IMAGE COMMAND
0/1 daocloud d0j8kqkv4zey t3. IO/library/ubuntu: trusty - 20151208/bin/bash

Service did not start, see the details, according to the service Preparing (check data, is a node without access to relevant images, but there node mirror)
Is there a know friends?

2.
Now want to use the swarm of overlay network function to create the service, and make the container of different host access to each other
I know docker same host link mechanism between different containers, but the swarm command to create the link is unlikely to use
Excuse me, how can achieve such a connection? Do you have any friends can give some practical creation code?
thank you
  • Related