**Not Maintained for now** 🐋 🐧 Azure Docker DataCenter Templates for the to-be GAed (Now GAed) Docker DataCenter with ucp:2.0.0-Beta4 (native Swarm with Raft) / now GAed as ucp:2.0.1/2.2.0-beta1 and dtr:2.1.0-Beta4 (now GAed as dtr:2.1.3/2.2.0-beta1) for Azure initially based on the "legacy" Docker DataCenter 1.x Azure MarketPlace Gallery Templates (1.0.9).
Перейти к файлу
Dwai Banerjee 4b52463b80 Update README.md 2017-03-19 15:40:27 +01:00
Azure.png Add files via upload 2016-10-15 16:27:36 +02:00
LICENSE Update LICENSE 2017-01-22 20:13:39 +01:00
MinimalFresh2.png Add files via upload 2016-12-01 00:03:22 +01:00
MinimalTopology.png Add files via upload 2016-10-16 14:25:54 +02:00
OMS.png Add files via upload 2016-11-04 07:12:38 +01:00
OMSContainer2.png Add files via upload 2016-12-02 01:30:39 +01:00
README.md Update README.md 2017-03-19 15:40:27 +01:00
azuredeploy.json Update azuredeploy.json 2017-02-28 18:18:52 +01:00
azuredeploy.parameters.json Update azuredeploy.parameters.json 2016-10-25 15:20:32 +02:00
newvnet.json Create newvnet.json 2016-10-01 07:16:33 +02:00
setup-controller.sh Update setup-controller.sh 2017-02-10 14:08:05 +01:00
setup-replica.sh Update setup-replica.sh 2017-02-10 14:08:54 +01:00
setup-ucp-dtr-node.sh Update setup-ucp-dtr-node.sh 2017-02-10 14:10:45 +01:00
setup-ucp-dtr-replica.sh Update setup-ucp-dtr-replica.sh 2017-02-10 14:11:01 +01:00
setup-ucp-node.sh Update setup-ucp-node.sh 2017-02-10 14:11:16 +01:00
ucpcontroller.json Update ucpcontroller.json 2016-10-11 22:27:15 +02:00
ucpdtrnode.json Update ucpdtrnode.json 2016-10-11 22:27:42 +02:00
ucpnode.json Update ucpnode.json 2016-10-11 22:28:30 +02:00

README.md

title description keywords
Deploy DDC on Azure Learn how to deploy Docker Datacenter with one click, using an ARM (ARM Resource Manager) Template. docker, datacenter, install, orchestration, management, azure, swarm

Table of Contents

Azure Docker Datacenter

Deploy and Visualize

Deploy to Azure

Topologies

A Minimal Fresh topology with minimum 3 Worker Managers, minimum 2 worker nodes, one DTR with local storage and another as replica would look like the following

Azure DDC Miminal Topology

The Minimal Topology (Minimum 3 Worker Manager Nodes for valid Raft HA and minimum 2 worker nodes with 2 extra for DTR and Replica)

As from https://resources.azure.com

Reporting bugs

Please report bugs by opening an issue in the GitHub Issue Tracker

Patches and pull requests

Patches can be submitted as GitHub pull requests. If using GitHub please make sure your branch applies to the current master as a 'fast forward' merge (i.e. without creating a merge commit). Use the git rebase command to update your branch to the current master if necessary.

Pre-Req and or Optional Usage of Operational Management Suite

OMS Setup is optional and the OMS Workspace Id and OMS Workspace Key can either be kept blank or populated post the steps below.

Create a free account for MS Azure Operational Management Suite with workspaceName

  • Provide a Name for the OMS Workspace.

  • Link your Subscription to the OMS Portal.

  • Depending upon the region, a Resource Group would be created in the Sunscription like "mms-weu" for "West Europe" and the named OMS Workspace with portal details etc. would be created in the Resource Group.

  • Logon to the OMS Workspace and Go to -> Settings -> "Connected Sources" -> "Linux Servers" -> Obtain the Workspace ID like ba1e3f33-648d-40a1-9c70-3d8920834669 and the "Primary and/or Secondary Key" like xkifyDr2s4L964a/Skq58ItA/M1aMnmumxmgdYliYcC2IPHBPphJgmPQrKsukSXGWtbrgkV2j1nHmU0j8I8vVQ==

  • Add The solutions "Agent Health", "Activity Log Analytics" and "Container" Solutions from the "Solutions Gallery" of the OMS Portal of the workspace.

  • While Deploying the DDC Template just the WorkspaceID and the Key are to be mentioned and all will be registered including all containers in any nodes of the DDC auto cluster.

  • Then one can login to https://OMSWorkspaceName.portal.mms.microsoft.com and check all containers running for Docker DataCenter and use Log Analytics and if Required perform automated backups using the corresponding Solutions for OMS.

  • Or if the OMS Workspace and the Machines are in the same subscription, one can just connect the Linux Node sources manually to the OMS Workspace as Data Sources

  • New nodes to be added to the cluster as worker needs to follow the Docker Instructions for OMS manually.

  • All Docker Engines in this Azure DDC autocluster(s) are automatically instrumented via ExecStart and Specific DOCKER_OPTIONS to share metric with the OMS Workspace during deployment as in the picture below.

OMS Container

Fluentd usage

OMS Fluentd

Optional Usage of Azure Container Registry

Credits : Ahmet's Blog, New Azure cli 2.0 Preview.

Create ACR
  • Create Dockerized new Azure cli
  • docker run -dti -v{HOME}:/home/azureuser --restart=always --name=azure-cli-python azuresdk/azure-cli-python
  • Login to Azure from the cli docker instance
  • $ docker exec -ti azure-cli-python bash -c "az login && bash"
  • Please view output below. Subscription Id, Tenant Id and names are representational.
  • To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code XXXXX to authenticate.
[
{
    "cloudName": "AzureCloud",
    "id": "123a1234-1b23-1e00-11c3-123456789d12",
    "isDefault": true,
    "name": "Microsoft Azure Subscription Name",
    "state": "Enabled",
    "tenantId": "12f123bf-12f1-12af-12ab-1d3cd456db78",
    "user": {
      "name": "ab@company.com",
      "type": "user"
    }
  }
]
  • create a resource group via new azure cli from inside the container logged into azure
  • bash-4.3# az group create -n acr -l southcentralus
{
  "id": "/subscriptions/123a1234-1b23-1e00-11c3-123456789d12/resourceGroups/acr",
  "location": "southcentralus",
  "managedBy": null,
  "name": "acr",
  "properties": {
    "provisioningState": "Succeeded"
  },
  "tags": null
}
  • Create the acr instance
  • bash-4.3# az acr create -n acr12345 -g acr -l southcentralus
  • Subscription Id, App Id, registry Name, Login Server are representational
  • ACR is available presently in eastus, westus and southcentralus
Create a new service principal and assign access:
  az ad sp create-for-rbac --scopes /subscriptions/123a1234-1b23-1e00-11c3-123456789d12/resourcegroups/acr/providers/Microsoft.ContainerRegistry/registries/acr12345 --role Owner --password <password>

Use an existing service principal and assign access:
  az role assignment create --scope /subscriptions/123a1234-1b23-1e00-11c3-123456789d12/resourcegroups/acr/providers/Microsoft.ContainerRegistry/registries/acr12345 --role Owner --assignee <app-id>
{
  "adminUserEnabled": false,
  "creationDate": "2016-12-09T03:45:14.843041+00:00",
  "id": "/subscriptions/123a1234-1b23-1e00-11c3-123456789d12/resourcegroups/acr/providers/Microsoft.ContainerRegistry/registries/acr12345",
  "location": "southcentralus",
  "loginServer": "acr12345-microsoft.azurecr.io",
  "name": "acr12345",
  "storageAccount": {
    "accessKey": null,
    "name": "acr123456789"
  },
  "tags": {},
  "type": "Microsoft.ContainerRegistry/registries"
}
Create Service Principal tag image and push to ACR
  • Subscription Id, App Id, registry Name, Login Server are representational
  • bash-4.3# az ad sp create-for-rbac -scopes /subscriptions/123a1234-1b23-1e00-11c3-123456789d12/resourcegroups/acr/providers/Microsoft.ContainerRegistry/registries/acr12345 --role Owner --password bangbaM23#
Retrying role assignment creation: 1/24
Retrying role assignment creation: 2/24
{
  "appId": "ab123cd5-b1ab-1234-abab-a2bcd90abcde",
  "name": "http://azure-cli-2016-12-09-03-46-57",
  "password": "bangbaM23#",
  "tenant": "12f123bf-12f1-12af-12ab-1d3cd456db78"
}
  • Login $ docker login -u ab123cd5-b1ab-1234-abab-a2bcd90abcde -p bangbaM23# acr12345-microsoft.azurecr.io
  • Pull a public image $ docker pull dwaiba/azureiot-nodered
  • Tag for new ACR $ docker tag dwaiba/azureiot-nodered acr12345-microsoft.azurecr.io/ab123cd5-b1ab-1234-abab-a2bcd90abcde/azureiot-nodered:latest
  • Push to ACR $ docker push acr12345-microsoft.azurecr.io/ab123cd5-b1ab-1234-abab-a2bcd90abcde/azureiot-nodered:latest
  • Run it $ docker run -dti -p 1880:1880 -p 1881:1881 acr12345-microsoft.azurecr.io/ab123cd5-b1ab-1234-abab-a2bcd90abcde/azureiot-nodered:latest

Note on Docker EE and Docker CE for Azure

Presently Docker is using the docker4x repository for entirely private images with dockerized small footprint go apps for catering to standard design of Docker CE and Docker EE for Public Cloud. The following are the last ones for Azure including the ones used for Docker Azure EE (DDC) and Docker CE. The base system service stack of Docker for CE and EE can be easily obtained via any standard monitoring like OMS or names obtained via docker search docker4x --limit 100|grep azure

Azure Subscription Icon