Trending Technology Machine Learning, Artificial Intelligent, Block Chain, IoT, DevOps, Data Science

Recent Post

Codecademy Code Foundations

Search This Blog

Docker Cloud : in DevOps

The Docker Cloud is a service provided by Docker in which you can carry out the following operation -
  • Nodes
  • Cloud Repository
  • Continuous Integration
  • Application Deployment
  • Continuous Deployment
Getting Started 

  You can go to the following link to getting started with Docker Cloud -
https://cloud.docker.com/


Once logged in , you will be provided with the following basic interface -


Connecting to the Cloud Provider :

The first step is to connect to an existing cloud provider.

The following steps will show you how to connect with an Amazon Cloud provider.

Step 1 - The first step is to ensure that you have the right AWS keys. This can be taken from the aws console.

Log into aws account using the following link - 



Step 2 - Once logged in, go to the Security Credentials section. Make a note of the access keys which will be used from Docker Hub.


Step 3 - Next, you need to create a policy in aws that will allow Docker to view EC2 instances. Go to the profiles section in aws. Click the Create Policy button.




Step 4 - Click on 'Create Your Own Policy' and give the policy name as dockercloudpolicy and the policy definition as shown below -



Step 5 - Next, you need to create a role which will be used by Docker to spin up nodes on AWS. For this, go to the Roles section in AWS and click the Create New Role option.



Step 6 - Give the name for the role as dockercloud-role




Step 7 - On the next screen, go to 'Role for Cross Account Access' and select "Provide access netween your account and a 3rd party AWS account".



Step 8 - On the next screen, enter the following details -
In the Account ID field, enter the ID for the Docker Cloud service : 689684103426.
In the External ID field, enter your Docker Cloud username.



Step 9 - Then, click the Next Step button and on the next screen, attach the policy which was created in the earlier step.



Step 10 - Finally, on the last screen when the role is created, make sure to copy the arn role which is created.



Step 11 - Now go back to Docker Cloud, select Cloud Providers, and click the plug symbol next to Amazon Web Services.

Enter the arn role and click the Save button.

Once saved, the integration with AWS would be complete.

Next comes setting up Nodes and Deploying service which are covered in the next ongoing lesson.

No comments:

Post a Comment

Popular Articles