There's more

Getting Docker for AWS up and running is only half the battle. Now that it is running, you will need to deploy an application, which we will show you in the next recipe. In the meantime, here are a few common tasks that you should know how to do:

  • Scaling more workers: If you want to change the number of workers that you have in your Swarm cluster, you can do this by updating the CloudFormation stack. 

Go to the CloudFormation management page and click the checkbox next to the stack you want to update. Then, click on the Actions button at the top and select Update Stack:

Pick Use current template, and then click Next:

Fill out the same parameters you specified previously, but this time, change your worker count to the new count, and click Next:

On the last page, it will let you preview your changes. If they look good, select the checkbox and click the Update button:

CloudFormation will then update the worker ASG setting and scale the number of worker nodes appropriately. To confirm that the nodes are up and have successfully joined the Swarm, you can log in to a Manager node and run the following command:

$ docker node ls

Deleting the Stack: Go to the CloudFormation management page and click the checkbox next to the stack you want to delete. Then, click on the Actions button at the top and select Delete Stack:

CloudFormation will then remove all of the items in your stack, including any services you had running on your Swarm.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.109.93