docker - Number of nodes appears 0 in a swarm cluster -


hello created swarm cluster in following way

on workstation:

$docker pull swarm $docker run --rm swarm create 

on docker host

docker run -d swarm join --addr=nodeip:2375token://cluster_id_from_step_2 

back on workstation

docker run -d -p 8333:2375 swarm manage token://cluster_id 

if list nodes running on cluster running following command on workstation see nodeip if run following command

sudo docker -h tcp://workstationip:8333 info containers: 0 images: 0 role: primary strategy: spread filters: affinity, health, constraint, port, dependency nodes: 0 cpus: 0 total memory: 0 b 

why dont see node ip in nodes?

note: set running in private network in vagrant based off virtualbox

the vagrantfile

vagrant.configure(2) |config|  config.vm.box = "phusion/ubuntu-14.04-amd64"  config.vm.hostname = "docker-test-machine"  config.vm.network "private_network", type: "dhcp"  config.vm.network "forwarded_port", guest: 80, host: 80    config.ssh.forward_agent = true   config.vm.synced_folder "h:\\home_folder", "/home_folder"  config.vm.provider "virtualbox" |vb|   vb.memory = 2048   vb.cpus = 4 end   config.vm.provision "shell", inline: <<-script     ## install docker     if ! type docker >/dev/null;       echo "installing docker"       curl -sl https://get.docker.io/ | sh       curl -sl https://raw.githubusercontent.com/dotcloud/docker/master/contrib/completion/bash/docker > /etc/bash_completion.d/docker       adduser vagrant docker     else       echo "upgrading docker"       apt-get update       apt-get -y install lxc-docker     fi    script end 

after did:

docker run -d -p 8333:2375 swarm manage token://cluster_id 

... swarm manager on port 8333 not 2375; need query swarm manager with:

docker -h tcp://workstationip:8333 info 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -