Skip to content

Instantly share code, notes, and snippets.

@mwaaas
Created April 10, 2017 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwaaas/a19251af8ef0c99b80c4e90c98e77cdf to your computer and use it in GitHub Desktop.
Save mwaaas/a19251af8ef0c99b80c4e90c98e77cdf to your computer and use it in GitHub Desktop.
#================
Start Swarm setup
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NODE_TYPE=manager
DYNAMODB_TABLE=HermesStagingDockerSwarm-dyndbtable
HOSTNAME=ip-172-31-42-202.eu-west-1.compute.internal
STACK_NAME=HermesStagingDockerSwarm
INSTANCE_NAME=ManagerAsg
AWS_REGION=eu-west-1
MANAGER_IP=
SWARM_STATE=inactive
HAS_DDC=no
CHANNEL=
#================
Get Primary Manager IP
MANAGER_IP=172.31.1.98
It's a Manager, run setup
MANAGER_TOKEN=SWMTKN-1-4qktmw4pfrgap66vpoybjvtq8vh81x5mc7gm5ntsw3dkc0njut-dcdgwf90jwbucf4lmlfn3mjav
Setup Manager
PRIVATE_IP=172.31.42.202
PRIMARY_MANAGER_IP=172.31.1.98
join as Secondary Manager
Secondary Manager
MANAGER_IP=172.31.1.98
MANAGER_TOKEN=SWMTKN-1-4qktmw4pfrgap66vpoybjvtq8vh81x5mc7gm5ntsw3dkc0njut-dcdgwf90jwbucf4lmlfn3mjav
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
SWARM_ID:
NODE:
Can't connect to primary manager, sleep and try again
SWARM_STATE=pending
Swarm state is pending, something happened, lets reset, and try again.
Node left the swarm.
Get Primary Manager IP
MANAGER_IP=172.31.1.98
Secondary Manager complete
#================ docker info ===
Containers: 5
Running: 5
Paused: 0
Stopped: 0
Images: 5
Server Version: 17.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: awslogs
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.13-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 990.9 MiB
Name: ip-172-31-42-202.eu-west-1.compute.internal
ID: CZ6G:77HG:JT4Z:WIGC:3KJP:IDHU:PURI:AXGK:6WSP:SBSL:ML64:D4LP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 257
Goroutines: 280
System Time: 2017-04-05T19:02:44.996881482Z
EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
os=linux
region=eu-west-1
availability_zone=eu-west-1c
instance_type=t2.micro
node_type=manager
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
#================ docker node ls ===
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
#===================================
Notify AWS that server is ready
ValidationError: Stack arn:aws:cloudformation:eu-west-1:309952364818:stack/HermesStagingDockerSwarm/377ad4b0-19f8-11e7-aaf0-503ac9e74cfd is in CREATE_COMPLETE state and cannot be signaled
Complete Swarm setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment