Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-data "docker swarm join --token..." not taken into account at boot #156

Open
sountrust opened this issue Oct 17, 2019 · 2 comments
Open

Comments

@sountrust
Copy link

Hello I'm a newbie on docker swarm and user-data file
I tried to add a new node to a cluster directly at boot setup with "docker swarm join --token " command in user-data file with no avail
Here is a sample of the file:
Screenshot 2019-10-17 at 19 49 31
I successfully ran the command with the same token directly into the node though
The purpose is to create a whole raspberry cluster with all workers and managers by configuring data-user file into each Hypriotos thus directly set up with hostnames, services, workers, managers etc... at boot stage.
Whether I'm totally wrong or missing something I would be glad hearing advices from any of you
Thank you

@sountrust
Copy link
Author

Any thoughts ?

@StefanScherer
Copy link
Member

These runcmd may be running too eatly on boot. The fake clock/ntp might not have correct time at that point.
I had a complex script to create a swarm after powering on the tiny cloud. It recreated the whole swarm due to the missing battery backed hardware clock.

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

No branches or pull requests

2 participants