Cloud is the platform for storing the data. Docker provides cloud service and below are operations we can operate -
Click on the below link for starting the Docker Cloud − https://cloud.docker.com/
After we log in, we will see the below interface −
Firstly we have to check for an existing provider and connect to it. Below are the steps that guide in helping to connect to Amazon Cloud Provider.
Step 1 – Check if you have the correct AWS keys or not. We can get that from aws console. Use the below link to login to your aws account − https://aws.amazon.com/console/
Step 2 – After logging in, navigate to Security Credentials section. You will find the list of keys and note it down.
Step 3 – After noting the keys, a policy needs to be created in aws so that the EC2 instances can be seen from Docker. Navigate to the profiles section in aws. Click on the Create Policy button.
Step 4 – You can see a button ‘Create Your Own Policy’, click on it. Mention dockercloudpolicy as the policy name and the policy definition as shown below.
Later, proceed with clicking the Create Policy button
Step 5 – Our next step is to create a role, Docker uses this to spin up nodes. To do this, under Roles section in AWS click the Create New Role option.
Step 6 – Give dockercloud-role as the role name.
Step 7 – In the next step, navigate to ‘Role for Cross Account Access’ and select “Provide access between your account and a 3rd party AWS account".
Step 8 − Here, give in the below details −
Give the Docker Cloud service ID in the Account ID field : 689684103426.
Give the Docker Cloud username in the External ID field.
Step 9 – Click on the Next Step button to continue further and here you will need to attach the policy that was created in last step.
Step 10 – At last, role is created and you have to add the arn role which is created.
Step 11 – Refer again to Docker Cloud, select the Cloud Providers, and click the plug symbol which is next to Amazon Web Services provider.
Give the arn role and click the Save button.
Once it is saved, we completed the AWS integration.
After AWS integration is done, a node has to setup. Under the Docker Cloud, refer the Nodes section. Remember that the node setup will create a node cluster before creating any.
Step 1 − Refer the Nodes section in Docker Cloud.
Step 2 – Next is to mention the node details that we will setup in AWS.
There will be Launch Node Cluster button at the bottom. Click that and once the deployment of node is executed, a notification is given.
Once the node is deployed, next is the service deployment. Follow the below steps on how to do that.
Step 1 – Under Services Section in Docker Cloud. Click on the Create button
Step 2 – We are choosing mongo in our case.
Step 3 – Next, we have to choose the option Create & Deploy. The Mongo container will be deployed on your node cluster.
Finally after deployment, the container can be seen in running state.
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.