Concept of Docker Cloud Service

Last updated on Sep 17 2022
Neha Warghade

Table of Contents

Concept of Docker Cloud Service

Docker – Cloud

The Docker Cloud is a service provided by Docker in which you can carry out the subsequent operations −

  • Nodes − You can connect the Docker Cloud to your existing cloud providers such as Azure and AWS to spin up containers on these environments.
  • Cloud Repository − Provides a place where you can store your own repositories.
  • Continuous Integration − Connect with Github and build a continuous integration pipeline.
  • Application Deployment − Deploy and scale infrastructure and containers.
  • Continuous Deployment − Can automate deployments.

Getting started

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

doc 46 2

Once logged in, you will be provided with the subsequent basic interface −

doc 48 2

Connecting to the Cloud Provider

The primary step is to connect to an existing cloud provider. The subsequent steps will show you how to connect with an Amazon Cloud provider.

Step 1 − The primary step is to ensure that you have the right AWS keys. This can be taken from the aws console. Log into your aws account using the subsequent link − https://aws.amazon.com/console/

doc 49 2

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

doc 50 2

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.

doc 52 1

Step 4 − Click on ‘Create Your Own Policy’ and give the policy name as dockercloudpolicy and the policy definition as shown below.

{    “Version”: “2012-10-17”,    “Statement”: [ {       “Action”: [          “ec2:*”,          “iam:ListInstanceProfiles”       ],       “Effect”: “Allow”,       “Resource”: “*”    } ] }

doc 53

Next, click the Create Policy button

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

doc 54

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

doc 55

Step 7 − On the next screen, go to ‘Role for Cross Account Access’ and select “Provide access between your account and a 3rd party AWS account”.

doc 56

Step 8 − On the next screen, enter the subsequent details −

  • Within the Account ID field, enter the ID for the Docker Cloud service: 689684103426.
  • Within the External ID field, enter your Docker Cloud username.
  • doc 57

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

doc 58

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

arn:aws:iam::085363624145:role/dockercloud-role

doc 59

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

doc 60

Enter the arn role and click the Save button.

doc 61

Once saved, the integration with AWS would be complete.

doc 61 1

Setting Up Nodes

Once the integration with AWS is complete, the next step is to setup a node. Go to the Nodes section in Docker Cloud. Note that the setting up of nodes will automatically setup a node cluster primary.

Step 1 − Go to the Nodes section in Docker Cloud.

doc 62

Step 2 − Next, you can give the details of the nodes which will be setup in AWS.

doc 63

You can then click the Launch Node cluster which will be present at the bottom of the screen. Once the node is deployed, you will get the notification within the Node Cluster screen.

doc 64

Deploying a Service

The next step after deploying a node is to deploy a service. To do this, we need to perform the subsequent steps.

Step 1 − Go to the Services Section in Docker Cloud. Click the Create button

doc 65

Step 2 − Choose the Service which is required. In our case, let’s choose mongo.

doc 66

Step 3 − On the next screen, choose the Create & Deploy option. This will start deploying the Mongo container on your node cluster.

doc 67

Once deployed, you will be able to see the container in a running state.

doc 68

So, this brings us to the end of blog. This Tecklearn ‘Concept of Docker Cloud Service’ blog helps you with commonly asked questions if you are looking out for a job in DevOps. If you wish to learn Docker and build a career in DevOps domain, then check out our interactive, Containerization using Docker Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/containerization-using-docker/

Containerization using Docker Training

About the Course

Tecklearn has specially designed this Containerization using Docker Training Course to advance your skills for a successful career in this domain. his Docker training online course will help you learn Docker containerization, running Docker containers, Docker image creation, Dockerfile, Docker orchestration, security best practices and more through hands-on projects and case studies. Upon completion of this online training, you will hold a solid understanding and hands-on experience with Docker.

Why Should you take Containerization using Docker Training?

  • Average salary of Docker Expert is $110k – Indeed.com
  • According to Grand View Research, the DevOps market size is estimated to be worth $12.85 billion by 2025. DevOps professionals are highly paid and in-demand throughout industries including retail, eCommerce, finance, and technology.
  • Intuit, PayPal, Splunk, Uber & many other MNC’s worldwide use Docker across industries

What you will Learn in this Course?

Introduction to DevOps

  • What is Software Development
  • Software Development Life Cycle
  • Why DevOps?
  • What is DevOps?
  • DevOps Lifecycle
  • DevOps Tools
  • Benefits of DevOps
  • How DevOps is related to Agile Delivery
  • DevOps Implementation

Containerization using Docker – Part 1

  • Introduction to Docker
  • Understanding Docker Lifecycle
  • Docker Architecture
  • Components of Docker Ecosystem
  • Common Docker Operations
  • Committing changes in a Container
  • Hands On

Containerization using Docker – Part 2

  • Building Custom Docker Images
  • Docker Image
  • Introduction to Docker Swarm
  • Deploying a 2-Node Cluster using Docker Swarm
  • Hands on

 

0 responses on "Concept of Docker Cloud Service"

Leave a Message

Your email address will not be published. Required fields are marked *