Watch a demo of linking your Docker Cloud account with different cloud service providers like AWS.
- [Instructor] In this video, we'll cover creating a Docker Cloud account. Then, we'll cover connecting that account to your cloud provider, such as Amazon's AWS. Additionally, we'll cover linking to a source control account, such as GitHub or Bitbucket. Finally, we'll cover selecting a service plan. Here we are at cloud.docker.com. If you've already got a Docker ID from signing up for Docker Hub, you can use that login here.
Otherwise, go ahead and sign up on this page. You'll be emailed an activation link with further instructions. Once you log in, you'll see the welcome screen. This is Docker Cloud console. In the side menu on the left here, we can see cloud settings. Let's click on that now to get the cloud provider's configuration page. Currently, Docker Cloud supports connecting to AWS, Digital Ocean, Azure, SoftLayer, and Packet.
To connect to each of these providers, you must have already set up an account with those services. To connect to your provider, click on the plug icon here and follow the instructions for that specific provider. We'll walk through the process of connecting to an AWS account now. Here, Docker Cloud is asking us for our AWS credentials. You'll want to create a unique set of credentials to connect to your account with a specific IAM, which is an acronym for Identity and Access Management policy that will allow Docker Cloud to access your AWS account.
Clicking on the here link will provide a documentation page that includes the IAM policy you'll need. Copy and paste this policy into your IAM policies console. Here we're in our Amazon AWS account in the IAM console. Select create policy. Select create your own policy. Go ahead and name that policy something like Docker Cloud access.
Now, create a description and paste in the policy that we copied from the Docker Cloud documentation page. Now, select create policy. Here, we can see at the top that our access policy has been created. Now, select roles from the left menu here. Here, we're going to want to create a new role. So, select create new role. Then, give the role a name, something like Docker Cloud.
Click next step. Here, we're going to want to choose role for cross-account access. Now, select access between your AWS account and a third party AWS account. Now, we're going to want to go back to the Docker Cloud documentation page. Here, go ahead and scroll down. We're looking for the account ID for Docker Cloud for AWS.
Copy this account ID here. Go back to your IAM console. And paste in that account ID. Now, put in your Docker Cloud user name. I'm not selecting MFA here. Go ahead and click next step. In the filter, go ahead and type Docker to find the access policy we created before. Select that.
Click next step. Now, we're going to want to go ahead and copy our Amazon Resource Name or ARN. And click create role. Now, go back to your Docker Cloud console and paste in our ARN. Linking to your source control provider requires a few less steps. Clicking on this plug will bring up the GitHub single sign on page.
Authorize the application and we've completed the process. You can see that the plug is now blue again. Under notifications, you may enter an email address that Docker Cloud can contact you with. Selecting only failures is typically a good idea. Entering billing information is not required if you are planning on using a free tier plan. The free tier is restricted to a single private repository.
You'll be able to follow along with the rest of this course using a free tier plan. Now that we've linked to a cloud provider, in the next video, we'll create a node cluster that we can launch Docker containers on.
- Linking to cloud providers
- Creating a node cluster
- Creating and scaling a service
- Installing, setting up, and using the CLI tool
- Creating a basic stack file and managing a stack
- Pushing a container image
- Linking containers in Docker Cloud
- Linking containers for service discovery