Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

why docker-machine can create the manager1,but the follow macines can not by the setup.sh script thank you #183

Closed
dockerwang opened this issue Mar 1, 2017 · 0 comments

Comments

@dockerwang
Copy link

** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE DOCKER LABS TUTORIAL CONTENT **

  • If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
  • If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
  • Or go to the Docker Forums *

Please provide the following information so we can assess the issue you're having

Which lab is it that you're having issues with?

Description

======> Creating 3 manager machines ...
======> Creating manager1 machine ...
Running pre-create checks...
Creating machine...
(manager1) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager1/boot2docker.iso...
(manager1) Creating VirtualBox VM...
(manager1) Creating SSH key...
(manager1) Starting the VM...
(manager1) Check network to re-create if needed...
(manager1) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env manager1
======> Creating manager2 machine ...
Running pre-create checks...
Creating machine...
(manager2) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager2/boot2docker.iso...
(manager2) Creating VirtualBox VM...
(manager2) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:43682->127.0.0.1:41511: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:43682->127.0.0.1:41511: read: connection reset by peer
======> Creating manager3 machine ...
Running pre-create checks...
Creating machine...
(manager3) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager3/boot2docker.iso...
(manager3) Creating VirtualBox VM...
(manager3) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:33328->127.0.0.1:42336: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:33328->127.0.0.1:42336: read: connection reset by peer
======> Creating 3 worker machines ...
======> Creating worker1 machine ...
Running pre-create checks...
Creating machine...
(worker1) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker1/boot2docker.iso...
(worker1) Creating VirtualBox VM...
(worker1) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:51994->127.0.0.1:39825: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:51994->127.0.0.1:39825: read: connection reset by peer
======> Creating worker2 machine ...
Running pre-create checks...
Creating machine...
(worker2) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker2/boot2docker.iso...
(worker2) Creating VirtualBox VM...
(worker2) Creating SSH key...
(worker2) Starting the VM...
(worker2) Check network to re-create if needed...
(worker2) Waiting for an IP...
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Error creating machine: Error in driver during machine creation: unexpected EOF
======> Creating worker3 machine ...
Running pre-create checks...
Creating machine...
(worker3) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker3/boot2docker.iso...
(worker3) Creating VirtualBox VM...
(worker3) Creating SSH key...
(worker3) Starting the VM...
(worker3) Check network to re-create if needed...
(worker3) Waiting for an IP...
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Error creating machine: Error in driver during machine creation: unexpected EOF
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
manager1 - virtualbox Stopped Unknown
manager2 - virtualbox Error Unknown machine does not exist
manager3 - virtualbox Stopped Unknown
worker1 - virtualbox Stopped Unknown
worker2 - virtualbox Stopped Unknown
worker3 * virtualbox Running Unknown ssh command error:
command : ip addr show
err : exit status 255
output :
======> Initializing first swarm manager ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "manager1" is not running
Error: Cannot run SSH command: Host "manager1" is not running
Error: Cannot run SSH command: Host "manager1" is not running
manager_token:
worker_token:
======> manager2 joining swarm as manager ...
Error getting IP address: machine does not exist
Error getting IP address: machine does not exist
Error getting IP address: Host is not running
machine does not exist
======> manager3 joining swarm as manager ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "manager3" is not running
Error: Cannot run SSH command: Host "manager1" is not running
======> worker1 joining swarm as worker ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "worker1" is not running
======> worker2 joining swarm as worker ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "worker2" is not running
======> worker3 joining swarm as worker ...
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output :
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output :
Error getting IP address: Host is not running
exit status 255
Error: Cannot run SSH command: Host "manager1" is not running
[root@localhost swarm]# docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
manager1 - virtualbox Stopped Unknown
manager2 - virtualbox Error Unknown machine does not exist
manager3 - virtualbox Stopped Unknown
worker1 - virtualbox Stopped Unknown
worker2 - virtualbox Stopped Unknown
worker3 * virtualbox Running Unknown ssh command error:
command : ip addr show
err : exit status 255
output :

Steps to reproduce the issue, if relevant:

  1. I have install compose docker-machine swarm
    2.I can create default by docker-machine

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64
Experimental: false

Output of docker info:

Containers: 18
Running: 3
Paused: 0
Stopped: 15
Images: 26
Server Version: 1.13.1
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: 6atpx6lx521jdbavbu6k32xeq
Is Manager: true
ClusterID: rscvk8tg9do73imq0xpo3gf8e
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 192.168.100.129
Manager Addresses:
192.168.100.129:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 976.5 MiB
Name: localhost.localdomain
ID: IX7M:AJGC:GFXJ:BRD2:XFO5:26TV:BDP4:W3OL:TYQH:TNWZ:2YNH:6B6S
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://5445e28f.m.daocloud.io/
Live Restore Enabled: false

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
my test environment is based the vmware workstation pro (centos 7) of win7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant