I was trying to create my worker nodes using docker swarm join-worker --token with a given token but it doesn't work. Please help me.
Be sure you are using the private IP address, the ports necessary for registration and management are not available publicly. Looks like you used the public IP in your init command, so the token was generated with the public IP of the server.
As we do in the course, you can initialize with the IP you want with the --advertise-addr option to the 'docker swarm init' command.