GithubHelp home page GithubHelp logo

azure-docker-extension's Introduction

⚠️ IMPORTANT ⚠️

Docker extension for Linux is deprecated.

DockerExtension is deprecated and will be retired November 2018.

We believe the are better alternatives to this extension. The extension merely installs Docker, so alteratives such as cloud-init or the CustomScript extension are a better way to install the Docker version of choice.

Azure Virtual Machine Extension for Docker

This repository contains source code for the Microsoft Azure Docker Virtual Machine Extension.

The source code is meant to be used by Microsoft Azure employees publishing the extension and the source code is open sourced under Apache 2.0 License for reference. You can read the User Guide below.

Docker VM extension can:

  • Install latest stable version of Docker Engine on your Linux VM
  • If provided, configures Docker daemon to listen on specified port, with given certs
  • Launches a set of containers using docker-compose (intended for running a static set of containers for monitoring, security etc.)

User Guide

1. Configuration schema

1.1. Public configuration keys

Schema for the public configuration file for the Docker Extension looks like this:

  • docker: (optional, JSON object)
    • port: (optional, string) the port Docker listens on
    • options: (optional, string array) command line options passed to the Docker engine
  • compose: (optional, JSON object) the docker-compose.yml file to be used, converted to JSON. If you are considering to embed secrets as environment variables in this section, please see the "environment" key described below. This feature is not intended for managing a dynamic set of containers, it is intended for starting a static set of bootstrap containers for monitoring, security or orchestrator agents. Please do not manage your containers through this feature.
  • compose-environment (optional, JSON object) Environment variables for docker-compose.
  • azure-environment (optional, string) Azure environment. Valid values are "AzureCloud" and "AzureChinaCloud". The default is "AzureCloud".

A minimal simple configuration would be an empty json object ({}) or a more advanced one like this:

{
	"docker":{
		"port": "2376",
		"options": ["-D", "--dns=8.8.8.8"]
	},
	"compose": {
		"cache" : {
			"image" : "memcached",
			"ports" : ["11211:11211"]
		},
		"web": {
			"image": "ghost",
			"ports": ["80:2368"]
		}
	},
	"compose-environment": {
		"COMPOSE_PROJECT_NAME": "blog",
		"COMPOSE_HTTP_TIMEOUT": "600"
	}
}

NOTE: It is not suggested to specify "port" unless you are going to specify "certs" configuration (described below) as well. This can open up the Docker engine to public internet without authentication.

1.2. Protected configuration keys

Schema for the protected configuration file stores the secrets that are passed to the Docker engine looks like this:

  • environment: (optional, JSON object) Key value pairs to store environment variables to be passed to docker-compose securely. By using this, you can avoid embedding secrets in the unencrypted "compose" section.
  • certs: (optional, JSON object)
    • ca: (required, string): base64 encoded CA certificate, passed to the engine as --tlscacert
    • cert: (required, string): base64 encoded TLS certificate, passed to the engine as --tlscert
    • key: (required, string): base64 encoded TLS key, passed to the engine as --tlskey
  • login: (optional, JSON object) login credentials to log in to a Docker Registry
    • server: (string, optional) registry server, if not specified, logs in to Docker Hub
    • username: (string, required)
    • password: (string, required)
    • email: (string, required)

In order to encode your existing Docker certificates to base64, you can run:

$ cat ~/.docker/ca.pem | base64

An advanced configuration that configures TLS for Docker engine and logs in to Docker Hub account would look like this:

{
    "environment" : {
        "SECRET_ENV": "<<secret-value>>",
        "MYSQL_ROOT_PASSWORD": "very-secret-password"
    },
    "certs": {
    	"ca": "<<base64 encoded ~/docker/ca.pem>>",
        "cert": "<<base64 encoded ~/docker/cert.pem>>",
        "key": "<<base64 encoded ~/docker/key.pem>>"
    },
    "login": {
    	"username": "myusername",
        "password": "mypassword",
        "email": "[email protected]"
    }
}

2. Deploying the Extension to a VM

Using Azure CLI: Once you have a VM created on Azure and configured your pub.json and prot.json (in section 1.1 and 1.2 above), you can add the Docker Extension to the virtual machine by running:

$ azure vm extension set 'yourVMname' DockerExtension Microsoft.Azure.Extensions '1.1' \
--public-config-path pub.json  \
--private-config-path prot.json

In the command above, you can change version with '*' to use latest version available, or '1.*' to get newest version that does not introduce non- breaking schema changes. To learn the latest version available, run:

$ azure vm extension list

You can also omit --public-config-path and/or --private-config-path if you do not want to configure those settings.

3. Using Docker Extension in ARM templates

You can provision Docker Extension in Azure Resource templates by specifying it just like a resource in your template. The configuration keys go to "settings" section and (optionally) protected keys go to "protectedSettings" section.

Example resource definition:

{
  "type": "Microsoft.Compute/virtualMachines/extensions",
  "name": "[concat(variables('vmName'), '/DockerExtension'))]",
  "apiVersion": "2015-05-01-preview",
  "location": "[parameters('location')]",
  "dependsOn": [
    "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
  ],
  "properties": {
    "publisher": "Microsoft.Azure.Extensions",
    "type": "DockerExtension",
    "typeHandlerVersion": "1.1",
    "autoUpgradeMinorVersion": true,
    "settings": {},
    "protectedSettings": {}
  }
}

You can find various usages of this at the following gallery templates:


Supported Linux Distributions

  • CoreOS 899 and higher
  • Ubuntu 13 and higher
  • CentOS 7.1 and higher
  • Red Hat Enterprise Linux (RHEL) 7.1 and higher

Other Linux distributions are currently not supported and extension is expected to fail on unsupported distributions.

Debugging

After adding the extension, it can usually take a few minutes for the extension to make it to the VM, install docker and do other things.

You can find the extension and Azure Linux agent logs here:

  • /var/log/azure-docker-extension-enable.log
  • /var/log/waagent.log
  • /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/**/docker-extension.log

If you are going to open an issue, please provide these log files.

Changelog

# 1.2.2 (2017-01-21)
- Add suport for the CoreOS rename (gh#116).

# 1.2.1 (2016-11-15) (released in Azure China only)
- Add support for Azure China by modifying the download URLs to point to the
  mirrors hosted by mirror.azure.cn (gh#112)

# 1.2.0 (2016-08-19)
- Fix: On CentOS start dockerd as -H=unix:// instead of -H=fd:// as get.docker.com
  install script has removed socket activation. (gh#104)
- Prefer 'dockerd' in systemd unit files over 'docker daemon'. docker-engine has
  migrated to this. This is why we are releasing a minor version for the extension
  this time and not a hotfix so that existing VMs don’t automatically get this and
  old versions of docker will not work with dockerd.

# 1.1.1606092330 (2016-06-09)
- Introduced “compose-environment” public configuration to pass additional unencrypted
  environment variables to docker-compose for fine tuning. (gh#87, gh#85)
- Better error messages for docker-compose failures indicating the log path. (gh#86)

# 1.1.1604142300 (2016-04-14)
- Fix: docker v1.11 release has broken docker-compose 1.5 from pulling private images.
  Upgrading to docker-compose 1.6.2 and dropping support for docker-engine <1.9.1 (gh#80)

# 1.1.1602270800 (2016-02-28)
- Fix: extension crash while collecting “yum install” output.

# 1.1.1601140348 (2016-01-13)
- Fix: eliminate redundant restarts of docker-engine on CoreOS if configuration
  is not changed.

# 1.1.1601070410 (2016-01-06)
- Fix: eliminate redundant restarting of docker-engine. This avoids restart of
  docker-engine service (and thus containers) when (1) VM boots (2) waagent
  calls extension's enable command in case of GoalState changes such as Load
  Balancer updates.
- Fix: Write .status file before forking into background in 'enable' command.
  This is a workaround for waagent 2.1.x.

# 1.1.1512180541 (2015-12-17)
- Security fix: prevent clear-text registry credentials from being logged.

# 1.1.1512090359 (2015-12-08)
- Introduced secure delivery of secrets through "environment" section of
  protected configuration to be passed to docker-compose. Users do not have
  to embed secrets in the "compose" section anymore.

# 1.0.1512030601 (2015-12-02)
- Added support for CentOS and Red Hat Enterprise Linux (RHEL).

# 1.0.1512020618 (2015-12-01)
- Bumped docker-compose version from v1.4.1 to v1.5.1.
- Added retry logic around installation as a mitigation for a VM scale set
  issue.

# 1.0.1510142311 (2015-10-14)
- Configured docker-compose timeout to 15 minutes to prevent big images
  from failing to be pulled down intermittently due to network conditions.

# 1.0.1509171835 (2015-09-18)
- Move 'install' stage to 'enable' step so that installation is not killed by
  5-minute waagent timeout on slow regions and distros (such as Ubuntu LTS)
  with many missing dependency packages.
- Bump docker-compose to v1.4.0 from v1.3.2.
- Extension now uninstalls docker-compose on 'uninstall' stage.

# 1.0.1509160543 (2015-09-16)
- Workaround for undesirable behavior in WALA: Write .seqnum file to /tmp to
  prevent multiple simultaneous calls to the extension with the same sequence
  number.

# 1.0.1508121604 (2015-08-12)
- Replaced '--daemon' flag with daemon due to breaking behavior introduced in
  docker-1.8.0 release.

# 1.0.1507232004 (2015-07-23)
- Updating the apt package name for uninstall step.

# 1.0.1507151643 (2015-07-15)
- Bump docker-compose to v1.3.2 from v1.2.0. (gh#41)

# 1.0.1507110733 (2015-07-11)
- Workaround for a bug caused from docker-compose to crash with error
  'write /dev/stderr: broken pipe'

# 1.0.1507101636 (2015-07-10)
- Bug fix (gh#38). Blocking on install step instead of forking and running in
  background.

# 1.0.1507020203 (2015-07-01)
- Better docker-compose integration and prevent duplicate container creations
  between reboots.
- Fork and run in background install/enable steps to avoid waagent time limits.

# 1.0.1506280321 (2015-06-27)
- "certs" that are not base64-encoded are also accepted now. This provides more
  backwards compatibility with the existing format in the old extension.
- Docker certs are now overwritten on every 'enable' run using the extension
  configuration.
- Placed certs server-cert.pem/server-key.pem are renamed to cert.pem/key.pem to
  be consistent with Docker's nomenclature. The change should be automatically
  picked up upon reboot.

# 1.0.1506141804 (2015-06-14)
- Privacy Policy link update

# 1.0.1506090235 (2015-06-09)
- Bug fix

# 1.0.1506041832 (2015-06-04)
- Initial release

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azure-docker-extension's People

Contributors

ahmetb avatar boumenot avatar gabrielhartmann avatar graemef avatar jeffmendoza avatar jthelin avatar kickes avatar lizzha avatar vladimir-shcherbakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-docker-extension's Issues

CentOS 7.1: Extension stuck in transitioning state

The docker extension hangs in transitioning state on Centos 7.2. It was working a few weeks ago with 1.9.1, but now it tries to install 1.10.1. yum install docker-engine works, but reports a warning: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. Full log is attached below.
Execution stops here:

if err := d.InstallDocker(); err != nil {
(line 41 reached, but 71 never)

[root@cbdeployerVM Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)

[root@cbdeployerVM Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348]# uname -a
Linux cbdeployerVM 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

/var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.1.1601140348/docker-extension.log

[DockerExtension] 2016/02/17 16:03:58 ----------------------------------------
[DockerExtension] 2016/02/17 16:03:58 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348/bin/docker-extension install"
[DockerExtension] 2016/02/17 16:03:58 seqnum: 0
[DockerExtension] 2016/02/17 16:03:58 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2016/02/17 16:03:58 distro info: CentOS 7.1.1503
[DockerExtension] 2016/02/17 16:03:58 using distro driver: driver.CentOSDriver
[DockerExtension] 2016/02/17 16:03:58 user: root uid:0 gid:0
[DockerExtension] 2016/02/17 16:03:58 env['PATH'] = /sbin:/usr/sbin:/bin:/usr/bin
[DockerExtension] 2016/02/17 16:03:58 + starting: 'install'
[DockerExtension] 2016/02/17 16:03:58 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2016/02/17 16:03:58 - completed: 'install'
[DockerExtension] 2016/02/17 16:03:58 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2016/02/17 16:03:58 Cleaned up .seqnum file.
[DockerExtension] 2016/02/17 16:04:03 ----------------------------------------
[DockerExtension] 2016/02/17 16:04:03 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348/bin/docker-extension enable"
[DockerExtension] 2016/02/17 16:04:03 seqnum: 0
[DockerExtension] 2016/02/17 16:04:03 distro info: CentOS 7.1.1503
[DockerExtension] 2016/02/17 16:04:03 using distro driver: driver.CentOSDriver
[DockerExtension] 2016/02/17 16:04:03 user: root uid:0 gid:0
[DockerExtension] 2016/02/17 16:04:03 env['PATH'] = /sbin:/usr/sbin:/bin:/usr/bin
[DockerExtension] 2016/02/17 16:04:03 + starting: 'enable'
[DockerExtension] 2016/02/17 16:04:03 ++ install docker
[executil] 2016/02/17 16:04:03 +++ invoke: /bin/sh [-c curl -sSL https://get.docker.com/ | sh]
+ sh -c 'sleep 3; yum -y -q install docker-engine'
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker) <[email protected]>"
 Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg

/var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.1.1601140348/CommandExecution.log

2016/02/17 16:03:58 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2016/02/17 16:03:58 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2016/02/17 16:03:58 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.1.1601140348
2016/02/17 16:03:58 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.1.1601140348downloaded successfully length = 2531904
2016/02/17 16:03:58 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.1.1601140348 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348
2016/02/17 16:03:58 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.1.1601140348
2016/02/17 16:03:58 Spawned bin/docker-extension install PID 2238
2016/02/17 16:04:03 installCommand completed.
2016/02/17 16:04:03 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348
2016/02/17 16:04:03 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.1.1601140348
2016/02/17 16:04:03 Spawned scripts/run-in-background.sh enable PID 2241
2016/02/17 16:04:08 enableCommand completed.
2016/02/17 16:04:08 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348
2016/02/17 16:04:08 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348
2016/02/17 16:04:08 Finished processing ExtensionsConfig.xml

Editing /etc/group not effective on CoreOS

log "Add user to docker group"
azureuser=$(grep -Eo '<UserName>.+</UserName>' /var/lib/waagent/ovf-env.xml | awk -F'[<>]' '{ print $3 }')
sed -i -r "s/^docker:x:[0-9]+:$/&$azureuser/" /etc/group

this doesn't do anything on coreos b/c core user is already added to docker group and therefore there's a line like

docker:x:233:core

docker vm extension is not reliable to be used in vm scalesets.

I was testing azure vm scalesets with docker vm extension and ran into some issues where it was not reliable when installing the docker extension and think that the information below could be of help to the team.

My test is creating 5 scalesets with 3 machines in each on ubuntu 15.04, and similar result on 14.xx.
Results are 5 machines get installed correct, 10 failed resulting in 0/5 scalesets getting deployed.

Test Name:  DeployHitRate
Test FullName:  SInnovations.Docker.Tests.DeployMasterNodesTest.DeployHitRate
Test Source:    C:\dev\S-Innovations\S-Innovations.Docker\tests\S-Innovations.Docker.Tests\DeployMasterNodesTest.cs : line 97
Test Outcome:   Passed
Test Duration:  0:10:22.6297882

Result StandardOutput:  
Resource Group: demo-vmss-pks-154, VMSS: pks14, Instance: 0 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:14.739039Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:44:14 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:14 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:44:14 seqnum: 0
[DockerExtension] 2015/11/26 01:44:14 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:14 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:14 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:14 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:14 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:14 + starting: 'install'
[DockerExtension] 2015/11/26 01:44:14 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:44:14 - completed: 'install'
[DockerExtension] 2015/11/26 01:44:14 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:14 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:15 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:15 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:44:15 seqnum: 0
[DockerExtension] 2015/11/26 01:44:15 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:15 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:15 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:15 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:15 + starting: 'enable'
[DockerExtension] 2015/11/26 01:44:15 ++ install docker
[executil] 2015/11/26 01:44:15 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.lV5MEcHhj5 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:4 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:5 https://apt.dockerproject.org ubuntu-vivid Release
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Get:7 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Get:8 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:9 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:10 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:11 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:12 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:13 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:14 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:15 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:16 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:17 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:18 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:19 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:20 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:21 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:22 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:23 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:24 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:25 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:26 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:27 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Fetched 1119 kB in 12s (87.1 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  aufs-tools cgroupfs-mount
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-engine
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-amd64_Packages - open (2: No such file or directory)
[executil] 2015/11/26 01:45:03 --- invoke end
[DockerExtension] 2015/11/26 01:45:03 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:45:03 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:45:03 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:44:14 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:44:14 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:44:14 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:44:14 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:44:14 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:14 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:14 Spawned bin/docker-extension install PID 1106
2015/11/26 01:44:14 installCommand completed.
2015/11/26 01:44:14 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:14 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:14 Spawned scripts/run-in-background.sh enable PID 1113
2015/11/26 01:44:20 enableCommand completed.
2015/11/26 01:44:20 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:20 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-154, VMSS: pks14, Instance: 1 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:14.739039Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:50 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:50 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:50 seqnum: 0
[DockerExtension] 2015/11/26 01:43:50 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:50 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:50 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:50 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:50 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:50 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:50 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:50 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:50 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:50 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:55 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:55 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:55 seqnum: 0
[DockerExtension] 2015/11/26 01:43:55 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:55 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:55 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:55 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:55 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:55 ++ install docker
[executil] 2015/11/26 01:43:55 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.DIoxkffzks --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Get:4 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Get:5 https://apt.dockerproject.org ubuntu-vivid Release
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:6 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:7 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:8 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:9 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:10 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:11 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:12 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:13 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:14 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:15 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:16 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:18 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:19 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:21 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:22 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:23 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:24 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:25 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:26 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:27 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Fetched 1119 kB in 18s (59.3 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
E: Problem renaming the file /var/cache/apt/pkgcache.bin.Z8TRZz to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
debconf: apt-extracttemplates failed: No such file or directory
Fetched 7375 kB in 2s (2670 kB/s)
dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)
[executil] 2015/11/26 01:45:00 --- invoke end
[DockerExtension] 2015/11/26 01:45:00 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:45:00 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:45:00 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:49 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:49 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:49 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:50 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:50 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:50 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:50 Spawned bin/docker-extension install PID 1163
2015/11/26 01:43:55 installCommand completed.
2015/11/26 01:43:55 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:55 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:55 Spawned scripts/run-in-background.sh enable PID 1233
2015/11/26 01:43:55 enableCommand completed.
2015/11/26 01:43:55 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:55 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-154, VMSS: pks14, Instance: 2 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:14.739039Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:54 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:54 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:54 seqnum: 0
[DockerExtension] 2015/11/26 01:43:54 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:54 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:54 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:54 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:54 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:54 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:54 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:54 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:54 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:54 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:59 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:59 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:59 seqnum: 0
[DockerExtension] 2015/11/26 01:43:59 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:59 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:59 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:59 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:59 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:59 ++ install docker
[executil] 2015/11/26 01:43:59 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.0ag7mEZYIX --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://azure.archive.ubuntu.com vivid InRelease
Get:1 http://azure.archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://azure.archive.ubuntu.com vivid-backports InRelease [64.5 kB]
Get:3 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:4 http://azure.archive.ubuntu.com vivid/main Sources [1077 kB]
Get:5 http://azure.archive.ubuntu.com vivid/restricted Sources [7162 B]
Get:6 http://azure.archive.ubuntu.com vivid/universe Sources [7017 kB]
Get:7 http://security.ubuntu.com vivid-security/main Sources [53.4 kB]
Get:8 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:9 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:10 https://apt.dockerproject.org ubuntu-vivid Release
Get:11 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:12 http://security.ubuntu.com vivid-security/restricted Sources [3418 B]
Get:13 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:14 http://security.ubuntu.com vivid-security/universe Sources [20.3 kB]
Get:15 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:16 http://security.ubuntu.com vivid-security/multiverse Sources [1937 B]
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:18 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:19 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:21 http://azure.archive.ubuntu.com vivid/multiverse Sources [174 kB]
Hit http://azure.archive.ubuntu.com vivid/main amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/universe amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/main Translation-en
Hit http://azure.archive.ubuntu.com vivid/multiverse Translation-en
Hit http://azure.archive.ubuntu.com vivid/restricted Translation-en
Hit http://azure.archive.ubuntu.com vivid/universe Translation-en
Get:22 http://azure.archive.ubuntu.com vivid-updates/main Sources [105 kB]
Get:23 http://azure.archive.ubuntu.com vivid-updates/restricted Sources [4351 B]
Get:24 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:25 http://azure.archive.ubuntu.com vivid-updates/universe Sources [47.3 kB]
Get:26 http://azure.archive.ubuntu.com vivid-updates/multiverse Sources [1937 B]
Get:27 http://azure.archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:28 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:29 http://azure.archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:30 http://azure.archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:31 http://azure.archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:32 http://azure.archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:33 http://azure.archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:34 http://azure.archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:35 http://azure.archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:36 http://azure.archive.ubuntu.com vivid-backports/main Sources [751 B]
Get:37 http://azure.archive.ubuntu.com vivid-backports/restricted Sources [28 B]
Get:38 http://azure.archive.ubuntu.com vivid-backports/universe Sources [5694 B]
Get:39 http://azure.archive.ubuntu.com vivid-backports/multiverse Sources [28 B]
Get:40 http://azure.archive.ubuntu.com vivid-backports/main amd64 Packages [612 B]
Get:41 http://azure.archive.ubuntu.com vivid-backports/restricted amd64 Packages [28 B]
Get:42 http://azure.archive.ubuntu.com vivid-backports/universe amd64 Packages [4399 B]
Get:43 http://azure.archive.ubuntu.com vivid-backports/multiverse amd64 Packages [28 B]
Get:44 http://azure.archive.ubuntu.com vivid-backports/main Translation-en [486 B]
Get:45 http://azure.archive.ubuntu.com vivid-backports/multiverse Translation-en [14 B]
Get:46 http://azure.archive.ubuntu.com vivid-backports/restricted Translation-en [14 B]
Get:47 http://azure.archive.ubuntu.com vivid-backports/universe Translation-en [4406 B]
Get:48 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:49 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:50 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:51 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:52 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Fetched 9714 kB in 20s (473 kB/s)
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[executil] 2015/11/26 01:44:29 --- invoke end
[DockerExtension] 2015/11/26 01:44:29 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:30 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:30 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:53 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:53 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:53 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:54 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:54 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:54 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:54 Spawned bin/docker-extension install PID 1378
2015/11/26 01:43:59 installCommand completed.
2015/11/26 01:43:59 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:59 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:59 Spawned scripts/run-in-background.sh enable PID 1484
2015/11/26 01:44:04 enableCommand completed.
2015/11/26 01:44:04 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:04 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311


Resource Group: demo-vmss-pks-153, VMSS: pks13, Instance: 0 : Succeeded
[
  {
    "code": "ProvisioningState/succeeded",
    "level": "Info",
    "displayStatus": "Provisioning succeeded",
    "message": null,
    "time": "2015-11-26T01:45:31.7547431Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:49 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:49 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:49 seqnum: 0
[DockerExtension] 2015/11/26 01:43:49 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:49 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:49 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:49 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:49 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:49 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:49 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:49 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:49 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:49 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:49 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:49 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:49 seqnum: 0
[DockerExtension] 2015/11/26 01:43:49 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:49 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:49 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:49 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:49 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:49 ++ install docker
[executil] 2015/11/26 01:43:49 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ACwEBOrQo8 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid InRelease
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:3 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:4 https://apt.dockerproject.org ubuntu-vivid InRelease
Get:5 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:6 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:7 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:8 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:9 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:10 https://apt.dockerproject.org ubuntu-vivid Release
Get:11 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:12 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:13 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Get:14 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Get:15 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Get:16 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:18 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:19 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:21 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:22 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:23 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:24 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:25 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:26 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:27 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Fetched 1119 kB in 14s (78.7 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
Fetched 7375 kB in 2s (2550 kB/s)
Selecting previously unselected package docker-engine.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 59557 files and directories currently installed.)
Preparing to unpack .../docker-engine_1.9.1-0~vivid_amd64.deb ...
Unpacking docker-engine (1.9.1-0~vivid) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up docker-engine (1.9.1-0~vivid) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2015/11/26 01:44:59 --- invoke end
[DockerExtension] 2015/11/26 01:44:59 -- install docker
[DockerExtension] 2015/11/26 01:44:59 ++ install docker-compose
[DockerExtension] 2015/11/26 01:44:59 Downloading compose from https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
[DockerExtension] 2015/11/26 01:45:02 -- install docker-compose
[DockerExtension] 2015/11/26 01:45:02 ++ add user to docker group
[DockerExtension] 2015/11/26 01:45:02 -- add user to docker group
[DockerExtension] 2015/11/26 01:45:02 ++ setup docker certs
[DockerExtension] 2015/11/26 01:45:02 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2015/11/26 01:45:02 -- setup docker certs
[DockerExtension] 2015/11/26 01:45:02 ++ update dockeropts
[DockerExtension] 2015/11/26 01:45:02 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2015/11/26 01:45:02 -- update dockeropts
[DockerExtension] 2015/11/26 01:45:02 ++ restart docker
[executil] 2015/11/26 01:45:02 +++ invoke: systemctl [daemon-reload]
[executil] 2015/11/26 01:45:03 --- invoke end
[executil] 2015/11/26 01:45:03 +++ invoke: systemctl [restart docker]
[executil] 2015/11/26 01:45:03 --- invoke end
[DockerExtension] 2015/11/26 01:45:07 -- restart docker
[DockerExtension] 2015/11/26 01:45:07 ++ login docker registry
[DockerExtension] 2015/11/26 01:45:07 registry login not specificied
[DockerExtension] 2015/11/26 01:45:07 -- login docker registry
[DockerExtension] 2015/11/26 01:45:07 ++ compose up
[DockerExtension] 2015/11/26 01:45:07 docker-compose config not specified, noop
[DockerExtension] 2015/11/26 01:45:07 -- compose up
[DockerExtension] 2015/11/26 01:45:07 - completed: 'enable'
[DockerExtension] 2015/11/26 01:45:07 Cleaned up .seqnum file.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:48 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:48 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:48 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:48 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:49 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:49 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:49 Spawned bin/docker-extension install PID 1199
2015/11/26 01:43:49 installCommand completed.
2015/11/26 01:43:49 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:49 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:49 Spawned scripts/run-in-background.sh enable PID 1203
2015/11/26 01:43:54 enableCommand completed.
2015/11/26 01:43:54 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:54 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-153, VMSS: pks13, Instance: 1 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:32.5047764Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:45 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:45 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:45 seqnum: 0
[DockerExtension] 2015/11/26 01:43:45 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:45 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:45 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:45 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:45 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:45 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:45 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:45 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:45 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:45 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:50 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:50 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:50 seqnum: 0
[DockerExtension] 2015/11/26 01:43:50 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:50 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:50 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:50 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:50 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:50 ++ install docker
[executil] 2015/11/26 01:43:50 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.retXygywZe --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:3 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:4 http://archive.ubuntu.com vivid/main amd64 Packages [1364 kB]
Get:5 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:6 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:7 https://apt.dockerproject.org ubuntu-vivid Release
Get:8 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:9 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:10 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:11 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:12 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:13 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:14 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:15 http://archive.ubuntu.com vivid/restricted amd64 Packages [15.4 kB]
Get:16 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:18 http://archive.ubuntu.com vivid/universe amd64 Packages [6485 kB]
Get:19 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:20 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:21 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:22 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:23 http://archive.ubuntu.com vivid/multiverse amd64 Packages [134 kB]
Get:24 http://archive.ubuntu.com vivid/main Translation-en [793 kB]
Get:25 http://archive.ubuntu.com vivid/multiverse Translation-en [103 kB]
Get:26 http://archive.ubuntu.com vivid/restricted Translation-en [4228 B]
Get:27 http://archive.ubuntu.com vivid/universe Translation-en [4456 kB]
Get:28 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:29 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:30 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:31 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:32 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:33 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:34 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:35 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Fetched 14.5 MB in 27s (524 kB/s)
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[executil] 2015/11/26 01:44:25 --- invoke end
[DockerExtension] 2015/11/26 01:44:25 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:26 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:26 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:44 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:44 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:44 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:45 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:45 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:45 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:45 Spawned bin/docker-extension install PID 1271
2015/11/26 01:43:50 installCommand completed.
2015/11/26 01:43:50 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:50 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:50 Spawned scripts/run-in-background.sh enable PID 1334
2015/11/26 01:43:50 enableCommand completed.
2015/11/26 01:43:50 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:50 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-153, VMSS: pks13, Instance: 2 : Succeeded
[
  {
    "code": "ProvisioningState/succeeded",
    "level": "Info",
    "displayStatus": "Provisioning succeeded",
    "message": null,
    "time": "2015-11-26T01:45:32.5047764Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:51 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:51 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:51 seqnum: 0
[DockerExtension] 2015/11/26 01:43:51 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:51 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:51 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:51 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:51 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:51 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:51 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:51 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:51 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:51 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:51 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:51 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:51 seqnum: 0
[DockerExtension] 2015/11/26 01:43:51 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:51 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:51 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:51 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:51 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:51 ++ install docker
[executil] 2015/11/26 01:43:51 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.8047O2HItm --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:4 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:5 https://apt.dockerproject.org ubuntu-vivid Release
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Get:7 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Get:8 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:9 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Get:10 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Get:11 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:12 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:13 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:14 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:15 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:16 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:17 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:18 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:19 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:20 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:21 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:22 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:23 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:24 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:25 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:26 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:27 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Fetched 1119 kB in 14s (75.2 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
Fetched 7375 kB in 2s (3195 kB/s)
Selecting previously unselected package docker-engine.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 59557 files and directories currently installed.)
Preparing to unpack .../docker-engine_1.9.1-0~vivid_amd64.deb ...
Unpacking docker-engine (1.9.1-0~vivid) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up docker-engine (1.9.1-0~vivid) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2015/11/26 01:45:00 --- invoke end
[DockerExtension] 2015/11/26 01:45:00 -- install docker
[DockerExtension] 2015/11/26 01:45:00 ++ install docker-compose
[DockerExtension] 2015/11/26 01:45:00 Downloading compose from https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
[DockerExtension] 2015/11/26 01:45:03 -- install docker-compose
[DockerExtension] 2015/11/26 01:45:03 ++ add user to docker group
[DockerExtension] 2015/11/26 01:45:03 -- add user to docker group
[DockerExtension] 2015/11/26 01:45:03 ++ setup docker certs
[DockerExtension] 2015/11/26 01:45:03 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2015/11/26 01:45:03 -- setup docker certs
[DockerExtension] 2015/11/26 01:45:03 ++ update dockeropts
[DockerExtension] 2015/11/26 01:45:03 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2015/11/26 01:45:03 -- update dockeropts
[DockerExtension] 2015/11/26 01:45:03 ++ restart docker
[executil] 2015/11/26 01:45:03 +++ invoke: systemctl [daemon-reload]
[executil] 2015/11/26 01:45:03 --- invoke end
[executil] 2015/11/26 01:45:03 +++ invoke: systemctl [restart docker]
[executil] 2015/11/26 01:45:05 --- invoke end
[DockerExtension] 2015/11/26 01:45:08 -- restart docker
[DockerExtension] 2015/11/26 01:45:08 ++ login docker registry
[DockerExtension] 2015/11/26 01:45:08 registry login not specificied
[DockerExtension] 2015/11/26 01:45:08 -- login docker registry
[DockerExtension] 2015/11/26 01:45:08 ++ compose up
[DockerExtension] 2015/11/26 01:45:08 docker-compose config not specified, noop
[DockerExtension] 2015/11/26 01:45:08 -- compose up
[DockerExtension] 2015/11/26 01:45:08 - completed: 'enable'
[DockerExtension] 2015/11/26 01:45:08 Cleaned up .seqnum file.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:50 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:50 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:51 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:51 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:51 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:51 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:51 Spawned bin/docker-extension install PID 1161
2015/11/26 01:43:51 installCommand completed.
2015/11/26 01:43:51 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:51 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:51 Spawned scripts/run-in-background.sh enable PID 1165
2015/11/26 01:43:51 enableCommand completed.
2015/11/26 01:43:51 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:51 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311


Resource Group: demo-vmss-pks-152, VMSS: pks12, Instance: 0 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:04.9421036Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:47 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:47 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:47 seqnum: 0
[DockerExtension] 2015/11/26 01:43:47 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:47 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:47 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:47 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:47 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:47 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:47 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:47 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:47 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:47 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:53 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:53 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:53 seqnum: 0
[DockerExtension] 2015/11/26 01:43:53 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:53 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:53 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:53 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:53 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:53 ++ install docker
[executil] 2015/11/26 01:43:53 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.SRWanc2ois --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://azure.archive.ubuntu.com vivid InRelease
Get:1 http://azure.archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://azure.archive.ubuntu.com vivid-backports InRelease [64.5 kB]
Get:3 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:4 http://azure.archive.ubuntu.com vivid/main Sources [1077 kB]
Get:5 http://azure.archive.ubuntu.com vivid/restricted Sources [7162 B]
Get:6 http://azure.archive.ubuntu.com vivid/universe Sources [7017 kB]
Get:7 http://security.ubuntu.com vivid-security/main Sources [53.4 kB]
Get:8 http://security.ubuntu.com vivid-security/restricted Sources [3418 B]
Get:9 http://security.ubuntu.com vivid-security/universe Sources [20.3 kB]
Get:10 http://security.ubuntu.com vivid-security/multiverse Sources [1937 B]
Get:11 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:12 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:13 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:14 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:15 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:16 https://apt.dockerproject.org ubuntu-vivid Release
Get:17 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:18 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:19 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:20 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:21 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:22 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:23 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:24 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:25 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:26 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:27 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:28 http://azure.archive.ubuntu.com vivid/multiverse Sources [174 kB]
Hit http://azure.archive.ubuntu.com vivid/main amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/universe amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/main Translation-en
Hit http://azure.archive.ubuntu.com vivid/multiverse Translation-en
Hit http://azure.archive.ubuntu.com vivid/restricted Translation-en
Hit http://azure.archive.ubuntu.com vivid/universe Translation-en
Get:29 http://azure.archive.ubuntu.com vivid-updates/main Sources [105 kB]
Get:30 http://azure.archive.ubuntu.com vivid-updates/restricted Sources [4351 B]
Get:31 http://azure.archive.ubuntu.com vivid-updates/universe Sources [47.3 kB]
Get:32 http://azure.archive.ubuntu.com vivid-updates/multiverse Sources [1937 B]
Get:33 http://azure.archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:34 http://azure.archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:35 http://azure.archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:36 http://azure.archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:37 http://azure.archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:38 http://azure.archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:39 http://azure.archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:40 http://azure.archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:41 http://azure.archive.ubuntu.com vivid-backports/main Sources [751 B]
Get:42 http://azure.archive.ubuntu.com vivid-backports/restricted Sources [28 B]
Get:43 http://azure.archive.ubuntu.com vivid-backports/universe Sources [5694 B]
Get:44 http://azure.archive.ubuntu.com vivid-backports/multiverse Sources [28 B]
Get:45 http://azure.archive.ubuntu.com vivid-backports/main amd64 Packages [612 B]
Get:46 http://azure.archive.ubuntu.com vivid-backports/restricted amd64 Packages [28 B]
Get:47 http://azure.archive.ubuntu.com vivid-backports/universe amd64 Packages [4399 B]
Get:48 http://azure.archive.ubuntu.com vivid-backports/multiverse amd64 Packages [28 B]
Get:49 http://azure.archive.ubuntu.com vivid-backports/main Translation-en [486 B]
Get:50 http://azure.archive.ubuntu.com vivid-backports/multiverse Translation-en [14 B]
Get:51 http://azure.archive.ubuntu.com vivid-backports/restricted Translation-en [14 B]
Get:52 http://azure.archive.ubuntu.com vivid-backports/universe Translation-en [4406 B]
Fetched 9714 kB in 25s (384 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package docker-engine
[executil] 2015/11/26 01:44:35 --- invoke end
[DockerExtension] 2015/11/26 01:44:35 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:35 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:35 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:47 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:47 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:47 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:47 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:47 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:47 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:47 Spawned bin/docker-extension install PID 1307
2015/11/26 01:43:53 installCommand completed.
2015/11/26 01:43:53 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:53 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:53 Spawned scripts/run-in-background.sh enable PID 1399
2015/11/26 01:43:58 enableCommand completed.
2015/11/26 01:43:58 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:58 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-152, VMSS: pks12, Instance: 1 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:04.9421036Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:52 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:52 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:52 seqnum: 0
[DockerExtension] 2015/11/26 01:43:52 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:52 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:52 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:52 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:52 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:52 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:52 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:52 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:52 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:52 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:57 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:57 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:57 seqnum: 0
[DockerExtension] 2015/11/26 01:43:57 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:57 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:57 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:57 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:57 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:57 ++ install docker
[executil] 2015/11/26 01:43:57 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.fOFicKxL73 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:3 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:4 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:5 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:7 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:8 https://apt.dockerproject.org ubuntu-vivid InRelease
Get:9 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:10 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:11 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:12 https://apt.dockerproject.org ubuntu-vivid Release
Get:13 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:14 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:15 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:16 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:17 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:18 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:19 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:21 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:22 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:23 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:24 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:25 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:26 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:27 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Fetched 1119 kB in 12s (90.5 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
E: Problem renaming the file /var/cache/apt/pkgcache.bin.tneY6o to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
W: You may want to run apt-get update to correct these problems
[executil] 2015/11/26 01:44:52 --- invoke end
[DockerExtension] 2015/11/26 01:44:52 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:52 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:52 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:51 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:51 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:51 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:51 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:52 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:52 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:52 Spawned bin/docker-extension install PID 1233
2015/11/26 01:43:57 installCommand completed.
2015/11/26 01:43:57 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:57 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:57 Spawned scripts/run-in-background.sh enable PID 1262
2015/11/26 01:43:57 enableCommand completed.
2015/11/26 01:43:57 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:57 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-152, VMSS: pks12, Instance: 2 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:04.9421036Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/

Resource Group: demo-vmss-pks-151, VMSS: pks11, Instance: 0 : Succeeded
[
  {
    "code": "ProvisioningState/succeeded",
    "level": "Info",
    "displayStatus": "Provisioning succeeded",
    "message": null,
    "time": "2015-11-26T01:45:41.7548376Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:55 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:55 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:55 seqnum: 0
[DockerExtension] 2015/11/26 01:43:55 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:55 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:55 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:55 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:55 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:55 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:55 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:55 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:55 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:55 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:00 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:00 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:44:00 seqnum: 0
[DockerExtension] 2015/11/26 01:44:00 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:00 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:00 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:00 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:00 + starting: 'enable'
[DockerExtension] 2015/11/26 01:44:00 ++ install docker
[executil] 2015/11/26 01:44:00 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.SoGKNRKvpq --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Get:4 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:5 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:6 https://apt.dockerproject.org ubuntu-vivid Release
Get:7 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:8 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:9 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:10 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:11 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:12 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:13 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:14 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:15 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:16 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:17 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:18 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:19 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:21 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:22 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:23 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:24 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:25 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:26 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:27 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Fetched 1119 kB in 10s (106 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
Fetched 7375 kB in 1s (3690 kB/s)
Selecting previously unselected package docker-engine.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 59557 files and directories currently installed.)
Preparing to unpack .../docker-engine_1.9.1-0~vivid_amd64.deb ...
Unpacking docker-engine (1.9.1-0~vivid) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up docker-engine (1.9.1-0~vivid) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2015/11/26 01:45:24 --- invoke end
[DockerExtension] 2015/11/26 01:45:24 -- install docker
[DockerExtension] 2015/11/26 01:45:24 ++ install docker-compose
[DockerExtension] 2015/11/26 01:45:24 Downloading compose from https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
[DockerExtension] 2015/11/26 01:45:29 -- install docker-compose
[DockerExtension] 2015/11/26 01:45:29 ++ add user to docker group
[DockerExtension] 2015/11/26 01:45:29 -- add user to docker group
[DockerExtension] 2015/11/26 01:45:29 ++ setup docker certs
[DockerExtension] 2015/11/26 01:45:29 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2015/11/26 01:45:29 -- setup docker certs
[DockerExtension] 2015/11/26 01:45:29 ++ update dockeropts
[DockerExtension] 2015/11/26 01:45:29 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2015/11/26 01:45:29 -- update dockeropts
[DockerExtension] 2015/11/26 01:45:29 ++ restart docker
[executil] 2015/11/26 01:45:29 +++ invoke: systemctl [daemon-reload]
[executil] 2015/11/26 01:45:29 --- invoke end
[executil] 2015/11/26 01:45:29 +++ invoke: systemctl [restart docker]
[executil] 2015/11/26 01:45:31 --- invoke end
[DockerExtension] 2015/11/26 01:45:34 -- restart docker
[DockerExtension] 2015/11/26 01:45:34 ++ login docker registry
[DockerExtension] 2015/11/26 01:45:34 registry login not specificied
[DockerExtension] 2015/11/26 01:45:34 -- login docker registry
[DockerExtension] 2015/11/26 01:45:34 ++ compose up
[DockerExtension] 2015/11/26 01:45:34 docker-compose config not specified, noop
[DockerExtension] 2015/11/26 01:45:34 -- compose up
[DockerExtension] 2015/11/26 01:45:34 - completed: 'enable'
[DockerExtension] 2015/11/26 01:45:34 Cleaned up .seqnum file.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:55 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:55 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:55 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:55 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:55 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:55 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:55 Spawned bin/docker-extension install PID 1154
2015/11/26 01:44:00 installCommand completed.
2015/11/26 01:44:00 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:00 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:00 Spawned scripts/run-in-background.sh enable PID 1260
2015/11/26 01:44:00 enableCommand completed.
2015/11/26 01:44:00 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:00 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-151, VMSS: pks11, Instance: 1 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:50.9110835Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:48 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:48 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:48 seqnum: 0
[DockerExtension] 2015/11/26 01:43:48 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:48 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:48 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:48 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:48 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:48 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:48 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:48 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:48 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:48 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:53 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:53 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:53 seqnum: 0
[DockerExtension] 2015/11/26 01:43:53 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:53 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:53 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:53 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:53 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:53 ++ install docker
[executil] 2015/11/26 01:43:53 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.VmNe9PpTyK --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid InRelease
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Get:4 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Get:5 https://apt.dockerproject.org ubuntu-vivid Release
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:6 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:7 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:8 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:9 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:10 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:11 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:12 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:13 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:14 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:15 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:16 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:17 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:18 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:19 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:21 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:22 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:23 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:24 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:25 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:26 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:27 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Fetched 1119 kB in 16s (66.0 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
E: Could not open file /var/lib/apt/lists/azure.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_binary-amd64_Packages - open (2: No such file or directory)
[executil] 2015/11/26 01:44:36 --- invoke end
[DockerExtension] 2015/11/26 01:44:36 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:36 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:36 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:47 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:47 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:47 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:48 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:48 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:48 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:48 Spawned bin/docker-extension install PID 1121
2015/11/26 01:43:53 installCommand completed.
2015/11/26 01:43:53 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:53 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:53 Spawned scripts/run-in-background.sh enable PID 1144
2015/11/26 01:44:00 enableCommand completed.
2015/11/26 01:44:00 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:00 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-151, VMSS: pks11, Instance: 2 : Succeeded
[
  {
    "code": "ProvisioningState/succeeded",
    "level": "Info",
    "displayStatus": "Provisioning succeeded",
    "message": null,
    "time": "2015-11-26T01:45:50.9110835Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:44:01 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:01 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:44:01 seqnum: 0
[DockerExtension] 2015/11/26 01:44:01 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:01 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:01 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:01 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:01 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:01 + starting: 'install'
[DockerExtension] 2015/11/26 01:44:01 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:44:01 - completed: 'install'
[DockerExtension] 2015/11/26 01:44:01 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:01 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:06 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:06 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:44:06 seqnum: 0
[DockerExtension] 2015/11/26 01:44:06 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:06 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:06 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:06 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:06 + starting: 'enable'
[DockerExtension] 2015/11/26 01:44:06 ++ install docker
[executil] 2015/11/26 01:44:06 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.KYpHvlieQR --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:3 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:4 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:5 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:6 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:7 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:8 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:9 https://apt.dockerproject.org ubuntu-vivid Release
Get:10 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:11 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:12 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:13 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:14 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:15 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:16 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:17 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:18 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:19 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:20 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:21 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:22 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:23 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:24 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:25 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:26 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:27 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Fetched 1119 kB in 13s (85.9 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
Fetched 7375 kB in 1s (6529 kB/s)
Selecting previously unselected package docker-engine.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 59557 files and directories currently installed.)
Preparing to unpack .../docker-engine_1.9.1-0~vivid_amd64.deb ...
Unpacking docker-engine (1.9.1-0~vivid) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up docker-engine (1.9.1-0~vivid) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2015/11/26 01:45:27 --- invoke end
[DockerExtension] 2015/11/26 01:45:27 -- install docker
[DockerExtension] 2015/11/26 01:45:27 ++ install docker-compose
[DockerExtension] 2015/11/26 01:45:27 Downloading compose from https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
[DockerExtension] 2015/11/26 01:45:30 -- install docker-compose
[DockerExtension] 2015/11/26 01:45:30 ++ add user to docker group
[DockerExtension] 2015/11/26 01:45:30 -- add user to docker group
[DockerExtension] 2015/11/26 01:45:30 ++ setup docker certs
[DockerExtension] 2015/11/26 01:45:30 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2015/11/26 01:45:30 -- setup docker certs
[DockerExtension] 2015/11/26 01:45:30 ++ update dockeropts
[DockerExtension] 2015/11/26 01:45:30 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2015/11/26 01:45:30 -- update dockeropts
[DockerExtension] 2015/11/26 01:45:30 ++ restart docker
[executil] 2015/11/26 01:45:30 +++ invoke: systemctl [daemon-reload]
[executil] 2015/11/26 01:45:31 --- invoke end
[executil] 2015/11/26 01:45:31 +++ invoke: systemctl [restart docker]
[executil] 2015/11/26 01:45:32 --- invoke end
[DockerExtension] 2015/11/26 01:45:35 -- restart docker
[DockerExtension] 2015/11/26 01:45:35 ++ login docker registry
[DockerExtension] 2015/11/26 01:45:35 registry login not specificied
[DockerExtension] 2015/11/26 01:45:35 -- login docker registry
[DockerExtension] 2015/11/26 01:45:35 ++ compose up
[DockerExtension] 2015/11/26 01:45:35 docker-compose config not specified, noop
[DockerExtension] 2015/11/26 01:45:35 -- compose up
[DockerExtension] 2015/11/26 01:45:35 - completed: 'enable'
[DockerExtension] 2015/11/26 01:45:35 Cleaned up .seqnum file.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:44:01 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:44:01 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:44:01 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:44:01 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:44:01 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:01 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:01 Spawned bin/docker-extension install PID 1165
2015/11/26 01:44:06 installCommand completed.
2015/11/26 01:44:06 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:06 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:06 Spawned scripts/run-in-background.sh enable PID 1260
2015/11/26 01:44:11 enableCommand completed.
2015/11/26 01:44:11 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:11 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311


Resource Group: demo-vmss-pks-150, VMSS: pks10, Instance: 0 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:49.2548592Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:51 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:51 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:51 seqnum: 0
[DockerExtension] 2015/11/26 01:43:51 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:51 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:51 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:51 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:51 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:51 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:51 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:51 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:51 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:51 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:56 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:56 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:56 seqnum: 0
[DockerExtension] 2015/11/26 01:43:56 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:56 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:56 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:56 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:56 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:56 ++ install docker
[executil] 2015/11/26 01:43:56 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Y1TTadqNlu --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Get:1 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid InRelease
Get:2 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:3 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:4 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:5 https://apt.dockerproject.org ubuntu-vivid Release
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Get:6 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:7 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Get:8 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:9 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Get:10 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:11 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Get:12 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:13 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:14 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:15 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:16 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:18 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:19 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:20 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:21 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:22 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:23 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:24 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:25 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:26 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:27 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Fetched 1119 kB in 18s (59.8 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  aufs-tools cgroupfs-mount
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-engine
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 7472 kB of archives.
After this operation, 37.7 MB of additional disk space will be used.
Get:1 http://azure.archive.ubuntu.com/ubuntu/ vivid/universe aufs-tools amd64 1:3.2+20130722-1.1 [92.3 kB]
Get:2 http://azure.archive.ubuntu.com/ubuntu/ vivid/universe cgroupfs-mount all 1.1 [4796 B]
Get:3 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
E: Problem renaming the file /var/cache/apt/pkgcache.bin.YJdutx to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
debconf: apt-extracttemplates failed: No such file or directory
Fetched 7472 kB in 2s (2597 kB/s)
dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)
[executil] 2015/11/26 01:45:12 --- invoke end
[DockerExtension] 2015/11/26 01:45:12 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:45:12 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:45:12 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:50 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:50 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:50 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:51 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:51 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:51 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:51 Spawned bin/docker-extension install PID 1155
2015/11/26 01:43:56 installCommand completed.
2015/11/26 01:43:56 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:56 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:56 Spawned scripts/run-in-background.sh enable PID 1250
2015/11/26 01:44:01 enableCommand completed.
2015/11/26 01:44:01 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:01 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-150, VMSS: pks10, Instance: 1 : Succeeded
[
  {
    "code": "ProvisioningState/succeeded",
    "level": "Info",
    "displayStatus": "Provisioning succeeded",
    "message": null,
    "time": "2015-11-26T01:45:49.2548592Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:43:47 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:47 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:43:47 seqnum: 0
[DockerExtension] 2015/11/26 01:43:47 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:47 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:47 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:47 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:47 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:47 + starting: 'install'
[DockerExtension] 2015/11/26 01:43:47 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:43:47 - completed: 'install'
[DockerExtension] 2015/11/26 01:43:47 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:43:47 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:43:52 ----------------------------------------
[DockerExtension] 2015/11/26 01:43:52 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:43:52 seqnum: 0
[DockerExtension] 2015/11/26 01:43:52 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:43:52 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:43:52 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:43:52 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:43:52 + starting: 'enable'
[DockerExtension] 2015/11/26 01:43:52 ++ install docker
[executil] 2015/11/26 01:43:52 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.cThmrUKupp --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://archive.ubuntu.com vivid InRelease
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:3 http://archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:4 https://apt.dockerproject.org ubuntu-vivid InRelease [442 B]
Get:5 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:6 https://apt.dockerproject.org ubuntu-vivid Release.gpg [442 B]
Get:7 https://apt.dockerproject.org ubuntu-vivid Release
Get:8 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:9 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:10 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:11 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:12 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:13 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:14 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:15 http://archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:16 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:17 http://archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:18 http://archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:19 http://archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:20 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:21 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:22 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:23 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:24 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:25 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Get:26 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:27 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [442 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Fetched 1119 kB in 11s (94.7 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 442
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
  aufs-tools cgroupfs-mount cgroup-lite
The following NEW packages will be installed:
  docker-engine
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 7375 kB of archives.
After this operation, 37.4 MB of additional disk space will be used.
Get:1 https://apt.dockerproject.org/repo/ ubuntu-vivid/main docker-engine amd64 1.9.1-0~vivid [7375 kB]
Fetched 7375 kB in 1s (3814 kB/s)
Selecting previously unselected package docker-engine.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 59557 files and directories currently installed.)
Preparing to unpack .../docker-engine_1.9.1-0~vivid_amd64.deb ...
Unpacking docker-engine (1.9.1-0~vivid) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up docker-engine (1.9.1-0~vivid) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:16:54 UTC 2015
 OS/Arch:      linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2015/11/26 01:45:15 --- invoke end
[DockerExtension] 2015/11/26 01:45:15 -- install docker
[DockerExtension] 2015/11/26 01:45:15 ++ install docker-compose
[DockerExtension] 2015/11/26 01:45:15 Downloading compose from https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
[DockerExtension] 2015/11/26 01:45:18 -- install docker-compose
[DockerExtension] 2015/11/26 01:45:18 ++ add user to docker group
[DockerExtension] 2015/11/26 01:45:19 -- add user to docker group
[DockerExtension] 2015/11/26 01:45:19 ++ setup docker certs
[DockerExtension] 2015/11/26 01:45:19 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2015/11/26 01:45:19 -- setup docker certs
[DockerExtension] 2015/11/26 01:45:19 ++ update dockeropts
[DockerExtension] 2015/11/26 01:45:19 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2015/11/26 01:45:19 -- update dockeropts
[DockerExtension] 2015/11/26 01:45:19 ++ restart docker
[executil] 2015/11/26 01:45:19 +++ invoke: systemctl [daemon-reload]
[executil] 2015/11/26 01:45:19 --- invoke end
[executil] 2015/11/26 01:45:19 +++ invoke: systemctl [restart docker]
[executil] 2015/11/26 01:45:20 --- invoke end
[DockerExtension] 2015/11/26 01:45:24 -- restart docker
[DockerExtension] 2015/11/26 01:45:24 ++ login docker registry
[DockerExtension] 2015/11/26 01:45:24 registry login not specificied
[DockerExtension] 2015/11/26 01:45:24 -- login docker registry
[DockerExtension] 2015/11/26 01:45:24 ++ compose up
[DockerExtension] 2015/11/26 01:45:24 docker-compose config not specified, noop
[DockerExtension] 2015/11/26 01:45:24 -- compose up
[DockerExtension] 2015/11/26 01:45:24 - completed: 'enable'
[DockerExtension] 2015/11/26 01:45:24 Cleaned up .seqnum file.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:43:46 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:43:46 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:43:46 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:43:47 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:43:47 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:47 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:47 Spawned bin/docker-extension install PID 1282
2015/11/26 01:43:52 installCommand completed.
2015/11/26 01:43:52 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:52 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:43:52 Spawned scripts/run-in-background.sh enable PID 1333
2015/11/26 01:43:52 enableCommand completed.
2015/11/26 01:43:52 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:43:52 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311

Resource Group: demo-vmss-pks-150, VMSS: pks10, Instance: 2 : Failed
[
  {
    "code": "ProvisioningState/failed/VMExtensionProvisioningError",
    "level": "Error",
    "displayStatus": "Provisioning failed",
    "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100\".",
    "time": "2015-11-26T01:45:49.2548592Z"
  },
  {
    "code": "PowerState/running",
    "level": "Info",
    "displayStatus": "VM running",
    "message": null,
    "time": null
  }
]
ls /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/
CommandExecution.log
docker-extension.log

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/docker-extension.log
[DockerExtension] 2015/11/26 01:44:21 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:21 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311/bin/docker-extension install"
[DockerExtension] 2015/11/26 01:44:21 seqnum: 0
[DockerExtension] 2015/11/26 01:44:21 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:21 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:21 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:21 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:21 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:21 + starting: 'install'
[DockerExtension] 2015/11/26 01:44:21 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2015/11/26 01:44:21 - completed: 'install'
[DockerExtension] 2015/11/26 01:44:21 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/11/26 01:44:21 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:26 ----------------------------------------
[DockerExtension] 2015/11/26 01:44:26 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/11/26 01:44:26 seqnum: 0
[DockerExtension] 2015/11/26 01:44:26 distro info: Ubuntu 15.04
[DockerExtension] 2015/11/26 01:44:26 using distro driver: driver.UbuntuSystemdDriver
[DockerExtension] 2015/11/26 01:44:26 user: root uid:0 gid:0
[DockerExtension] 2015/11/26 01:44:26 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DockerExtension] 2015/11/26 01:44:26 + starting: 'enable'
[DockerExtension] 2015/11/26 01:44:26 ++ install docker
[executil] 2015/11/26 01:44:26 +++ invoke: /bin/sh [-c wget -qO- https://get.docker.com/ | sh]
apparmor is enabled in the kernel and apparmor utils were already installed
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.sW9ZraCA3G --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c mkdir -p /etc/apt/sources.list.d
+ sh -c echo deb https://apt.dockerproject.org/repo ubuntu-vivid main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://azure.archive.ubuntu.com vivid InRelease
Get:1 http://azure.archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Get:2 http://azure.archive.ubuntu.com vivid-backports InRelease [64.5 kB]
Get:3 http://security.ubuntu.com vivid-security InRelease [64.4 kB]
Get:4 http://azure.archive.ubuntu.com vivid/main Sources [1077 kB]
Get:5 https://apt.dockerproject.org ubuntu-vivid InRelease
Ign https://apt.dockerproject.org ubuntu-vivid InRelease
Get:6 http://azure.archive.ubuntu.com vivid/restricted Sources [7162 B]
Get:7 http://azure.archive.ubuntu.com vivid/universe Sources [7017 kB]
Get:8 https://apt.dockerproject.org ubuntu-vivid Release.gpg [454 B]
Get:9 https://apt.dockerproject.org ubuntu-vivid Release
Get:10 http://security.ubuntu.com vivid-security/main Sources [53.4 kB]
Get:11 https://apt.dockerproject.org ubuntu-vivid/main amd64 Packages
Get:12 https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:13 http://security.ubuntu.com vivid-security/restricted Sources [3418 B]
Get:14 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:15 http://security.ubuntu.com vivid-security/universe Sources [20.3 kB]
Get:16 http://security.ubuntu.com vivid-security/multiverse Sources [1937 B]
Get:17 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:18 http://security.ubuntu.com vivid-security/main amd64 Packages [160 kB]
Get:19 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Get:20 http://security.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:21 http://security.ubuntu.com vivid-security/universe amd64 Packages [66.1 kB]
Get:22 https://apt.dockerproject.org ubuntu-vivid/main Translation-en [454 B]
Ign https://apt.dockerproject.org ubuntu-vivid/main Translation-en
Get:23 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [6045 B]
Get:24 http://security.ubuntu.com vivid-security/main Translation-en [77.3 kB]
Get:25 http://security.ubuntu.com vivid-security/multiverse Translation-en [2743 B]
Get:26 http://security.ubuntu.com vivid-security/restricted Translation-en [2774 B]
Get:27 http://security.ubuntu.com vivid-security/universe Translation-en [40.8 kB]
Get:28 http://azure.archive.ubuntu.com vivid/multiverse Sources [174 kB]
Hit http://azure.archive.ubuntu.com vivid/main amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/universe amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com vivid/main Translation-en
Hit http://azure.archive.ubuntu.com vivid/multiverse Translation-en
Hit http://azure.archive.ubuntu.com vivid/restricted Translation-en
Hit http://azure.archive.ubuntu.com vivid/universe Translation-en
Get:29 http://azure.archive.ubuntu.com vivid-updates/main Sources [105 kB]
Get:30 http://azure.archive.ubuntu.com vivid-updates/restricted Sources [4351 B]
Get:31 http://azure.archive.ubuntu.com vivid-updates/universe Sources [47.3 kB]
Get:32 http://azure.archive.ubuntu.com vivid-updates/multiverse Sources [1937 B]
Get:33 http://azure.archive.ubuntu.com vivid-updates/main amd64 Packages [252 kB]
Get:34 http://azure.archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:35 http://azure.archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:36 http://azure.archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6045 B]
Get:37 http://azure.archive.ubuntu.com vivid-updates/main Translation-en [121 kB]
Get:38 http://azure.archive.ubuntu.com vivid-updates/multiverse Translation-en [2743 B]
Get:39 http://azure.archive.ubuntu.com vivid-updates/restricted Translation-en [3112 B]
Get:40 http://azure.archive.ubuntu.com vivid-updates/universe Translation-en [74.1 kB]
Get:41 http://azure.archive.ubuntu.com vivid-backports/main Sources [751 B]
Get:42 http://azure.archive.ubuntu.com vivid-backports/restricted Sources [28 B]
Get:43 http://azure.archive.ubuntu.com vivid-backports/universe Sources [5694 B]
Get:44 http://azure.archive.ubuntu.com vivid-backports/multiverse Sources [28 B]
Get:45 http://azure.archive.ubuntu.com vivid-backports/main amd64 Packages [612 B]
Get:46 http://azure.archive.ubuntu.com vivid-backports/restricted amd64 Packages [28 B]
Get:47 http://azure.archive.ubuntu.com vivid-backports/universe amd64 Packages [4399 B]
Get:48 http://azure.archive.ubuntu.com vivid-backports/multiverse amd64 Packages [28 B]
Get:49 http://azure.archive.ubuntu.com vivid-backports/main Translation-en [486 B]
Get:50 http://azure.archive.ubuntu.com vivid-backports/multiverse Translation-en [14 B]
Get:51 http://azure.archive.ubuntu.com vivid-backports/restricted Translation-en [14 B]
Get:52 http://azure.archive.ubuntu.com vivid-backports/universe Translation-en [4406 B]
Fetched 9714 kB in 22s (438 kB/s)
W: Size of file /var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-vivid_Release.gpg is not what the server reported 801 454
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[executil] 2015/11/26 01:44:57 --- invoke end
[DockerExtension] 2015/11/26 01:44:57 ERROR: executing /bin/sh [-c wget -qO- https://get.docker.com/ | sh] failed: exit status 100
[DockerExtension] 2015/11/26 01:44:57 Cleaned up .seqnum file.
[DockerExtension] 2015/11/26 01:44:57 Exiting with code 1.

cat /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1510142311/CommandExecution.log
2015/11/26 01:44:20 Downloading plugin manifest: Microsoft.Azure.Extensions.DockerExtension from http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions_DockerExtension_europewest_manifest.xml
2015/11/26 01:44:20 Plugin server is: rdfepirv2am2prdstr02.blob.core.windows.net
2015/11/26 01:44:20 Bundle URI = http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311
2015/11/26 01:44:21 Plugin bundlehttp://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311downloaded successfully length = 2518865
2015/11/26 01:44:21 Extracted http://rdfepirv2am2prdstr02.blob.core.windows.net/708cdbbfb9ad4802ac80a012992930b1/Microsoft.Azure.Extensions__DockerExtension__1.0.1510142311 to /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:21 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:21 Spawned bin/docker-extension install PID 1265
2015/11/26 01:44:26 installCommand completed.
2015/11/26 01:44:26 Installation completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:26 Found RuntimeSettings for Microsoft.Azure.Extensions.DockerExtension V 1.0.1510142311
2015/11/26 01:44:26 Spawned scripts/run-in-background.sh enable PID 1295
2015/11/26 01:44:26 enableCommand completed.
2015/11/26 01:44:26 Enable completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311
2015/11/26 01:44:26 Processing completed for Microsoft.Azure.Extensions.DockerExtension-1.0.1510142311


Succes: 5, Failed: 10, vmsssucceded: 0, vmssfailed:5

Support docker daemon labels

docker --daemon --label key=value [--label k=v ...] can be used to identify certain hosts (or their properties) in a Swarm setup. We could plumb this through the extension. This way Swarm can schedule can have various constraints like storage=ssd.

Docker Extension doesn't work

Since today,
I'm experiencing following issue when Docker Extension is used:

[ERROR] New-AzureRmResourceGroupDeployment : 3:13:27 PM - VM has reported a failure
[ERROR] when processing extension 'DockerExtension'. Error message: "Enable Docker
[ERROR] failed: ERROR: executing /bin/sh [-c curl -sSL https://get.docker.com/ | sh]
[ERROR] failed: exit status 1".

May be there are some issue while trying to download Docker bits ?

Thanks

Using protected environment in container environment

I am trying to figure out how to use environment from protected in a container environment.

From README.md, I think it should be done like this:

    "cache" : {
        "image" : "memcached",
        "ports" : ["11211:11211"],
        "environment": [ "SECRET_ENV=${SECRET_ENV}" ]
    }

Looking at azure-docker-extension/integration-test/extensionconfig/public.json, makes me think this is the right approach:

    "cache" : {
        "image" : "memcached",
        "ports" : ["11211:11211"],
        "environment": [ "SECRET_ENV" ]
    }

How can the protected environment be used in the container environment?
Perhaps the readme can be updated to make this more clear?

Update README

  • explain what this repo is
  • have links to the docs showing how to use the extension via the xplat-cli

How to resolve a "bad certificate" error

I'm in the process of trying to set up an Azure Ubuntu VM with the Docker extensions and everything seems to go fine until I try to do a remote "docker info" command (using the information here: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-docker-with-portal/) to test the Azure host. (Doing it on the Azure VM works fine, so I know Docker is there.)

My local client is also an Ubuntu 14.04 LTS system, and I can successfully SSH to the Azure VM. However when I use the command:
docker --tls -H=tcp://my-ubuntu-system.cloudapp.net:4243 info
I get the "remote error: bad certificate" error.

I have verified the certificates in the Azure VM (in /etc/docker) are indeed the correct ones, so the question is: which certificate is bad?

Is there some certificate I don't have in place on the client system to access the remote host?

Thanks in advance.

systemctl not found

Using the Docker Quick Start Terminal and docker-machine v0.7.0 I created a default image docker-machine vm using the azure driver

docker-machine create --driver azure --azure-subscription-id XXXX-XXXX-XX-XXX-XXXX --azure-location westeurope --azure-resource-group XXXXX etldockermachine

I then add it

docker-machine env etldockermachine
 eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env etldockermachine)

And SSH into it

docker-machine ssh

Once in, I try to run

systemctl
## -sh: systemctl: not found

On the basis that the default machine is a 15.10 according to the docs so it should be using systemd

Am I doing something daft or is this a bug? I'm trying to follow the install instructions for the azure file storage plugin and not having any joy as a consequence of this issue

docker login credentials not made available to non-root provisioned user

I do see

[DockerExtension] 2015/11/30 05:05:19 ++ login docker registry
[executil] 2015/11/30 05:05:19 +++ invoke: docker [login --email=**** --username=***--password=***]
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
[executil] 2015/11/30 05:05:21 --- invoke end
[DockerExtension] 2015/11/30 05:05:21 -- login docker registry

in my log but when trying to pull a image from the private registry, its not signed in.

pksorensen@swarm-node-0:~$ docker pull ascend/tiling
Using default tag: latest
Pulling repository docker.io/ascend/tiling
Error: image ascend/tiling:latest not found

Is this intended that its only logged in as part of the setup and I should login again when needing access to private repository?

Ubuntu Server 15.04, docker not configured properly

I am using

azure vm docker create -e 22 -l "West US" dockerxtension.cloudapp.net "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-15_04-amd64-server-20150325-beta2-en-us-30GB"

and docker daemon runs like

/usr/bin/docker -d -H fd://

I can see docker certs are successfully copied to /etc/docker and /etc/default/docker has set to

DOCKER_OPTS="--tlsverify --tlscacert=/etc/docker/ca.pem --tlscert=/etc/docker/server-cert.pem --tlskey=/etc/docker/server-key.pem -H=0.0.0.0:4243"

Uploading docker-handler.log here: https://gist.github.com/ahmetalpbalkan/8667623da29fc3f9be8e for further investigation.

First impression, it seems like enable hasn't restarted docker somehow.

When I restarted docker (sudo service docker restart), it still didn't pick up DOCKER_OPTS. I realized this version of ubuntu doesn't have upstart (so logs are not at /var/log/upstart/docker anymore) but they go to syslog and when I look at syslog I saw nothing suspicious.

Not sure what's wrong here. Could be docker as well. I'll take another look.

Daemon is not exposed internally via unix:// socket

Since the client cert only lives at client side, we start the daemon only listening at -H 0.0.0.0:4243. Maybe when users ssh into the machine, they might want to use the local engine like sudo docker ps but we don't listen on -H unix:// (or fd://).

Since user is already sudo, they can enter into container namespaces and view the filesystem etc. In that case, it already makes sense to listen on -H unix:// as well.

Docker not starting

I have spent most of the day trying to create an Ubuntu 14.04 LTS VM with Docker without success.
I am using the commands:
IMAGENAME="b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04-LTS-amd64-server-20140724-en-us-30GB"
VMSIZE="Basic_A1"
azure vm docker create lmp-swarm-i-master -l "East US" --vm-size $VMSIZE -e 22 $IMAGENAME AUser ThePassword
These same commands were working fine last week.
I was running the 0.9.3 version of the Azure CLI, and upgraded to 0.9.5 thinking it might possibly help. Unfortunately, the problem still persists.
The maybe coincidence this started happening right after the MS Docker announgement (http://azure.microsoft.com/blog/2015/07/02/a-brand-new-docker-extension/), but then again, it may not.
Unfortunately, I'm blocked until this is resolved.

  • Mark

[integration-test] VM cleanups

Our integration tests currently deploy VMs (in parallel) named dockerextensiontest-{1..N} N being the # of the images we test.

When the test begins, we search for the pattern dockerextensiontest-* and delete them all in the subscription. Then we deploy the VMs and the extension (in parallel) then do the validation on all VMs (one by one):

delete_vms
create_vms
add_extension_to_vms
validate_vms
delete_vms
  • If the test fails, we do not clean any of the VMs up (for investigation).
  • If the test passes, we clean the VMs up.

However in CI mode when something fails, the VMs will be around until someone takes action and re-initiates CI run until the tests pass (which may take days). In this case, we still need to keep the VM(s) for investigation.

We can do better cleanup by deleting the VMs for which we've completed the validation in the validate_vm function (and unfortunately we probably have to wait on it, which takes 1-2 mins).

Tests will run considerably slower, but we'll be paying for less compute if the tests fail and next CI run kicks in and it succeeds.

Add README

  • explain what this repo is
  • have links to the docs showing how to use the extension via the xplat-cli

Docker certificate will be overwritten after rebooting

This extension will overwrite certificate in /etc/docker.io/ after rebooting. It means that user does not have a chance to change docker certificate.

In addition to certificate will be reset, the setting in /etc/default/docker.io will also be reset.

Problem when publishing / question

Hi

I've read docs at Maintainers-Guide and I can successfully build and pack the extension with make bundle.
However when I make publish, something is failing.
I've changed in Makefile the STGACCT var with my storage account and SUBS_ID with my subscription id. When I run make publish I'm asked for the accountkey; I provide it and then I can see the blob is uploaded successfully in my storage account. Then I'm asked for Path to Subscription Management Cert and I provide it; however API call to https://management.core.windows.net/SUBS_ID/services/extensions (where SUBS_ID is my subscription id) is failing and returns a 403 response with this body:

<Error xmlns="http://schemas.microsoft.com/windowsazure"
       xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Code>ForbiddenError</Code>
    <Message>This operation is not allowed for this subscription.</Message>
</Error>

I've also read Handler Registration and related docs and code at azure-linux-extensions but I'm encountering the same issue when publishing the sample extension: the operation seems to be not allowed for my subscription.

Am I missing something?
Am I supposed to register to some sort of service?
Where can I find docs about https://management.core.windows.net/SUBS_ID/services/extensions API? I can't find them on Service Management REST API Reference, can you point me to the right place?
Can anyone help?

Thanks!

azure vm docker create yields devicemapper backend

I'm creating ubuntu 14.04.2 LTS vm's using the following syntax for the xplat cli.

azure vm docker create --ssh -l "West US" -n "dockerhost01" dockerhost01 "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_2_LTS-amd64-server-20150309-en-us-30GB" user pass --availability-set "dockerhost01-as" --virtual-network-name "docker-net" -b Subnet-1 --docker-cert-dir ./certs

The resulting docker instances use devicemapper as the storage backend, not aufs and as such are affected by this issue: moby/moby#4036. Below is the docker info from one of my deployed machines. If I run the docker installation manually (https://github.com/Azure/azure-docker-extension/blob/master/scripts/install.sh#L65-L72) on a VM created from the same image, I do not have the same problem and the docker installation picks up aufs as expected. Is the code in this repository the 'live' docker extension for azure, or is there some other problem ?

Thanks.

docker info:

Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-8:1-131207-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 305.7 MB
 Data Space Total: 107.4 GB
 Metadata Space Used: 725 kB
 Metadata Space Total: 2.147 GB
 Udev Sync Supported: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 3.16.0-31-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 1
Total Memory: 1.639 GiB
Name: dockerhost01
ID: ....
Username: ....
Registry: [https://index.docker.io/v1/]
WARNING: No swap limit support

Setting um VM with AZURE-CLI

When i try to setup an new VM using "azure vm docker" the VM is created successful but when i visit the Azure Portal no Extensions are installed, neither i'am able to connect via docker client (getting i/o) timeout.

azure vm docker create geek-dock2 --ssh -l 'West US' -z "ExtraSmall" "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04-LTS-amd64-server-20140618.1-en-us-30GB" azureuser 'myPa$$w0rd' 

Issues with docker compose

Could you please address these issues?
a. The documentation doesn’t specify what the name of the created compose project is.
b. If docker-compose throws an error, the error details are not propagated to either Ibiza or the CLI.
c. There’s no way to specify the COMPOSE_HTTP_TIMEOUT, so any moderately complicated compose projects (like ours) will always fail.

Thank you
--Azure IoT Team

Make sure we don't write certs if certs not passed

#4: If certs are not passed to the extension config (maybe user wants to configure docker host without certs), we shouldn't be overwriting any certs user might have placed to /etc/docker/ (make sure this is the case).

Then the question arises if we should:

  • keep -H 0.0.0.0:4243 (because it won't work without the certs)
  • keep DOCKEROPTS="--tlsverify --tlscacert=/etc/docker/ca.cer ....." args (if we drop these and kep listening on a public port, it means docker instance is insecure and everybody can use it).

(otherwise docker instance won't be accessible from user's client machine for the time being).

Maybe we can keep both, assuming user will place the certs manually (or user's disk image have those placed already).

Not specifying the certs is an advanced feature after all and xplat-cli will always pass the certs.

Replace echo functions with log

create a log function that prints messages with date to stdout, this way we can have timestamps in the docker-handler.log

Correct compose save path for CoreOS

enable.sh fails to download docker-compose because

MSOpenTech.Extensions.DockerExtension-0.6.0.0/scripts/enable.sh: line 84: /usr/local/bin/docker-compose: Read-only file system

on CoreOS paths like /usr/bin, /bin/, /usr/local/bin will be readonly.

This causes script to terminate early and not make it to steps like configuring certs and DOCKER_OPTS.

--daemon is now just daemon

Docker 1.8.0 just came out and they've changed the daemon argument for starting up the Docker daemon process, removing the '--' from the option. Unfortunately this means that out of the box the Azure Docker Extension is no longer able to start the docker daemon process because of the 'bad' option.

On a broader topic, always installing the latest version of Docker makes using the extension a little bit scary if you're doing a deployment and a new version of Docker appears (as it has today) and breaks everything! Longer term, some way of pinning Docker versions would be really useful.

EDIT: They've actually moved the 'daemon' option into the upstart init script so it's no longer necessary at all in the DOCKER_OPTS in /etc/default/docker.

Spurious = added to Env when parsing JSON file

If I pass the following JSON file to the extension, the environment variable is effectively passed to the container but has a trailing = (as per docker inspect)

{   
    "compose": {
        "portal" : {
            "image" : "centurylink/drupal",
            "ports" : ["80:80"],
            "links" : ["database"]
        },
        "database": {
            "image": "centurylink/mysql",
            "environment": ["MYSQL_DATABASE: portal_db"]
        }
    }
}

And

azureuser@jmp-tr01:~$ sudo docker inspect compose_database_1 | grep MYSQL_DATABASE
            "MYSQL_DATABASE: portal_db=",

docker-compose.yml is overridden every reboot

I'm using Azure Virtual Machine with preconfigured Docker and I see it is using azure-docker extension.

I need configure /etc/docker/compose/docker-compose.yml for passing some parameters to jenkins container. But with every reboot that changes in docker-compose.yml disapears.

Is this the normal behavior?

I see the same configuration in /var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1601140348/config/0.settings but I don't know if this is the place to make this configuration.

What is the best way to configure docker-compose.yml with custom parameters?

Report error status back during scripts

Right now we use exec in bash scripts to fork and continue in the background otherwise waagent kills us (or at least reports extension operation as timed out).

But now that docker install bug is fixed, it installs way faster (~1 min mark for install.sh && enable.sh), maybe we may remove those execs. (separate discussion)

Here's a case where script we sent to background has failed (due to coreos bug #9) however portal still shows In Progress because status file was not updated with failure.

The install operation's status file (/var/lib/waagent/MSOpenTech.Extensions.DockerExtension-0.6.0.0/status/0.status) was this:

[{
    "version": 1.0,
    "timestampUTC": "2015-04-15T05:16:53Z",
    "status" : {
        "name": "Enable Docker",
        "operation": "Enabling Docker",
        "status": "transitioning", <!---- this
        "formattedMessage": {
            "lang": "en",
            "message": "Enabling Docker."
        }
    }
}]

Because we fail and exit using exit. We probably should find a way to catch the exit in our scripts and write failure to the status report file (as shown here) somehow.

Otherwise any failure happened anywhere in the bash script will just terminate the bash script and extension installation status will keep showing "transitioning" on Portal or REST API or other clients of the extensions API.

Docker Swarm behind Azure load balancing

For testing, I recently set up a Docker Swarm in a load balanced Azure Cloud Service consisting of 5 VMs, all running Ubuntu 14.04 LTS with the Azure Docker VM Extension. Prior to trying to create the swarm, I was able to configure a load balanced cloud service with 4 VMs which worked fine. (The fifth node was added as the swarm master.) This did get a little interesting, making sure all of the ports chosen for the swarm nodes (and the use of the [Azure] internal IP address) are appropriate.
While the swarm appeared to be created/joined/managed correctly, all containers deployed to the swarm master were not "sent" to the swarm nodes, but were deployed on the swarm master. BTW, by correctly, I mean the swarm agent was running on all the swarm nodes, the swarm list on the swarm master was correct, etc.
The question I have is: has anyone successfully deployed a swarm behind Azure LB?
One test I need to do is to see if I can deploy a swarm without LB.
Thanks in advance.

  • Mark

Fix company name issues in docs

Extension source code repo and portal has references to Microsoft Open Technologies Inc.

Wait on legal to change these to Microsoft Corporation.

Docker container state under Azure Docker Extensions

I was under the impression Docker containers were stateless. In other words, exiting a running container and starting it would cause a "fresh" instance to start up, nothing from the previous run would be "remembered". Am I correct in believing containers should be stateless?
I am asking because I am seeing cases (not all the time) where the state from a running container persists across a container exit.
I'm trying to understand whether I'm seeing a bug or If this in the intended behavior.

Unable to configure extension when using a template deployment

I suspect I've got the JSON format wrong for configuring the extension, but I've not been able to find any specific documentation for what I'm trying to do. I'm bringing up a number of VMs and trying to configure Docker on them using a resource-group based templated deployment.

The relevant part of my template is:

{
    "apiVersion": "2015-05-01-preview",
    "dependsOn": [
        "Microsoft.Compute/virtualMachines/VMNAME"
    ],
    "location": "[resourceGroup().location]",
    "name": "VMNAME/dockerExtension",
    "properties": {
        "autoUpgradeMinorVersion": true,
        "publisher": "Microsoft.Azure.Extensions",
        "settings": {
            "certs": {
                "ca": "...",
                "cert": "...",
                "key": "..."
            },
            "login": {
                "email": "...",
                "password": "...",
                "username": "..."
            },
            "docker": {
                "options": [
                    "-D",
                    "--dns=8.8.8.8",
                    "--storage-driver=aufs",
                    "--graph=/mnt"
                ],
                "port": "2376"
            }
        },
        "type": "DockerExtension",
        "typeHandlerVersion": "1.0"
    },
    "type": "Microsoft.Compute/virtualMachines/extensions"
}

And I'm receiving this error in /var/log/azure/Microsoft.Azure.Extensions.DockerExtension/1.0.1507151643/docker-extension.log

[DockerExtension] 2015/07/21 14:14:15 ----------------------------------------
[DockerExtension] 2015/07/21 14:14:15 Extension handler launch args: "./bin/docker-extension enable"
[DockerExtension] 2015/07/21 14:14:15 distro info: Ubuntu 14.04
[DockerExtension] 2015/07/21 14:14:15 using distro driver: driver.UbuntuUpstartDriver
[DockerExtension] 2015/07/21 14:14:15 user: root uid:0 gid:0
[DockerExtension] 2015/07/21 14:14:15 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
[DockerExtension] 2015/07/21 14:14:15 + starting: 'enable'
[DockerExtension] 2015/07/21 14:14:15 ERROR: error parsing handler settings: error deserializing public settings for handler: json: cannot unmarshal number into Go value of type string

Any hints as to what I'm doing wrong, or even better, an addition to the README to describe using the extension from a templated deployment would be gratefully received.

Thanks
Stephen

Removing Azure VM Endpoint causes Docker container to exit

I've come across something and I'm not sure if it is a bug or a feature by design.
If I create an Azure Ubuntu 14.04 LTS VM with the (latest) Docker Extension and a running app in a Docker container, when I delete the VM endpoint, the Docker container exits. As there endpoint / port is quiet (no traffic), I'm not sure why this should cause the container to exit. The app in the container does not have any kind of heartbeat.
Does the Docker Extension implementation check the port for a corresponding VM endpoint?

[integration-test] Timeout for indefinite retries

Our integration tests validate a number of things by deploying VMs and running commands against them via docker-cli. However since extension deployment to VM happens async, we keep retrying.

Problem is we currently retry indefinitely (and keep printing .s to the screen every 5 s.). We should fail after a while with a good error message.

failed executing docker-compose

I am trying to deploy an ARM template which worked before, but now I get an error message:

{
  "status": "Failed",
  "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
      {
        "code": "VMExtensionProvisioningError",
        "message": "VM has reported a failure when processing extension 'DockerExtension'. Error message: \"Enable Docker failed: ERROR: 'compose up' failed: executing /usr/local/bin/docker-compose [-p compose -f /etc/docker/compose/docker-compose.yml up -d] failed: exit status 1\"."
      }
    ]
  }
}

I had a look on the virtual machine, which is using:

root@MyDockerVM:/etc/docker/compose# docker --version
Docker version 1.11.0, build 4dc5990
root@MyDockerVM:/etc/docker/compose# docker-compose version
docker-compose version: 1.5.1
docker-py version: 1.5.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013

When I try to launch docker-compose up, docker-compose is unable to pull my image. However, when I try to pull the image with docker, it works fine.

Debugging this further made me learn that docker-compose wasn't working because there was no emailproperty in ~/.docker/config.json.

This property should have been set during the deployment, which executes the docker login.

Manually executing the command shows this nice message:

Warning: '-e' is deprecated, it will be removed soon. See usage.

And it doesn't write an email to the config.json, which breaks docker-compose...

Docker version as configuration

It would be usefull to be able to fix down the docker version you want to use.
Right now the drivers are implementing the installation as curl -sSL https://get.docker.com/ | sh
which always gets the latest version.

A workaround could be to let https://get.docker.com/ install the latest, and if the docker_version is specified, we add an extra yum install docker-engine-${DOCKER_VERSION} or apt-get wahtever

Does it makes sense?

Installation begins and fails on Oracle Linux 6.8

Seems like the platform detection might have an issue. Test automation tried to install the extension on Oracle Linux 6.8, and installation started and then failed.

  • /var/log/azure-docker-extension-enable.log
[DockerExtension] 2016/07/06 22:43:11 ----------------------------------------
[DockerExtension] 2016/07/06 22:43:11 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330/bin/docker-extension install"
[DockerExtension] 2016/07/06 22:43:11 seqnum: 0
[DockerExtension] 2016/07/06 22:43:11 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2016/07/06 22:43:11 distro info: Red Hat Enterprise Linux Server 6.8
[DockerExtension] 2016/07/06 22:43:11 using distro driver: driver.RHELDriver
[DockerExtension] 2016/07/06 22:43:11 user: root uid:0 gid:0
[DockerExtension] 2016/07/06 22:43:11 env['PATH'] = /sbin:/usr/sbin:/bin:/usr/bin
[DockerExtension] 2016/07/06 22:43:11 + starting: 'install'
[DockerExtension] 2016/07/06 22:43:11 installing is deferred to the enable step to avoid timeouts.
[DockerExtension] 2016/07/06 22:43:11 - completed: 'install'
[DockerExtension] 2016/07/06 22:43:11 Status 'success' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2016/07/06 22:43:11 Cleaned up .seqnum file.
[DockerExtension] 2016/07/06 22:43:11 ----------------------------------------
[DockerExtension] 2016/07/06 22:43:11 Extension handler launch args: "/var/lib/waagent/Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330/bin/docker-extension enable"
[DockerExtension] 2016/07/06 22:43:11 seqnum: 0
[DockerExtension] 2016/07/06 22:43:11 distro info: Red Hat Enterprise Linux Server 6.8
[DockerExtension] 2016/07/06 22:43:11 using distro driver: driver.RHELDriver
[DockerExtension] 2016/07/06 22:43:11 user: root uid:0 gid:0
[DockerExtension] 2016/07/06 22:43:11 env['PATH'] = /sbin:/usr/sbin:/bin:/usr/bin
[DockerExtension] 2016/07/06 22:43:11 + starting: 'enable'
[DockerExtension] 2016/07/06 22:43:11 ++ install docker
[executil] 2016/07/06 22:43:11 +++ invoke: /bin/sh [-c curl -sSL https://get.docker.com/ | sh]
+ sh -c 'sleep 3; yum -y -q install docker-engine'
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Importing GPG key 0x2C52609D:
 Userid: "Docker Release Tool (releasedocker) <[email protected]>"
 From  : https://yum.dockerproject.org/gpg

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

[executil] 2016/07/06 22:44:13 --- invoke end
[DockerExtension] 2016/07/06 22:44:13 -- install docker
[DockerExtension] 2016/07/06 22:44:13 ++ install docker-compose
[DockerExtension] 2016/07/06 22:44:13 Downloading compose from https://github.com/docker/compose/releases/download/1.6.2/docker-compose-Linux-x86_64
[DockerExtension] 2016/07/06 22:44:15 -- install docker-compose
[DockerExtension] 2016/07/06 22:44:15 ++ add user to docker group
[DockerExtension] 2016/07/06 22:44:16 -- add user to docker group
[DockerExtension] 2016/07/06 22:44:16 ++ setup docker certs
[DockerExtension] 2016/07/06 22:44:16 Docker certificate /etc/docker/ca.pem is not provided in the extension settings, skipping docker certs installation
[DockerExtension] 2016/07/06 22:44:16 -- setup docker certs
[DockerExtension] 2016/07/06 22:44:16 ++ update dockeropts
[DockerExtension] 2016/07/06 22:44:16 Updating daemon args to: daemon -H=fd://
[DockerExtension] 2016/07/06 22:44:16 ERROR: failed to update dockeropts: error updating DOCKER_OPTS: error reading /lib/systemd/system/docker.service: open /lib/systemd/system/docker.service: no such file or directory
[DockerExtension] 2016/07/06 22:44:16 Cleaned up .seqnum file.
[DockerExtension] 2016/07/06 22:44:16 Exiting with code 1.
  • /var/log/waagent.log
2016/07/06 22:42:44.160169 INFO Azure Linux Agent Version:2.1.5.rc3
2016/07/06 22:42:44.164733 INFO OS: oracle 6.8
2016/07/06 22:42:44.167011 INFO Python: 2.6.6
2016/07/06 22:42:44.169190 INFO Run daemon
2016/07/06 22:42:44.172225 INFO No RDMA handler exists for distro='Oracle Linux' version='6.8'
2016/07/06 22:42:44.176262 INFO Activate resource disk
2016/07/06 22:42:44.192336 INFO Detect GPT...
2016/07/06 22:42:44.685915 INFO GPT not detected
2016/07/06 22:42:44.691703 INFO Check fstype
2016/07/06 22:42:44.701721 INFO The partition is formatted with ntfs
2016/07/06 22:42:44.705068 INFO Format partition: /dev/sdb1 with fstype ext4
2016/07/06 22:42:45.928602 INFO Mount resource disk
2016/07/06 22:42:46.005514 INFO Resource disk (/dev/sdb) is mounted at /mnt/resource with fstype ext4
2016/07/06 22:42:46.017494 INFO Clean protocol
2016/07/06 22:42:46.020361 INFO Run provision handler.
2016/07/06 22:42:46.024956 INFO Copy ovf-env.xml.
2016/07/06 22:42:46.185117 INFO Successfully mounted dvd
2016/07/06 22:42:46.263915 ERROR run cmd 'eject /dev/sr0' failed
2016/07/06 22:42:46.270056 ERROR Error Code:127
2016/07/06 22:42:46.272222 ERROR Result:/bin/sh: eject: command not found

2016/07/06 22:42:46.275772 WARNING (000007)Failed to eject dvd: ret=127
2016/07/06 22:42:46.279896 INFO Detect protocol by file
2016/07/06 22:42:46.282208 INFO Clean protocol
2016/07/06 22:42:46.284018 INFO WireServer endpoint is not found. Rerun dhcp handler
2016/07/06 22:42:46.288452 INFO test for route to 168.63.129.16
2016/07/06 22:42:46.291133 WARNING no route exists to 168.63.129.16
2016/07/06 22:42:46.293870 INFO checking for dhcp lease cache
2016/07/06 22:42:46.296043 INFO cache exists [False]
2016/07/06 22:42:46.298101 INFO Send dhcp request
2016/07/06 22:42:46.301721 INFO examine /proc/net/route for primary interface
2016/07/06 22:42:46.304877 INFO primary interface is [eth0]
2016/07/06 22:42:46.307291 INFO interface [lo] has flags [73], is loopback [True]
2016/07/06 22:42:46.310656 INFO interface [lo] skipped
2016/07/06 22:42:46.315764 INFO interface [eth0] has flags [4163], is loopback [False]
2016/07/06 22:42:46.319001 INFO interface [eth0] selected
2016/07/06 22:42:46.385525 INFO examine /proc/net/route for primary interface
2016/07/06 22:42:46.388716 INFO primary interface is [eth0]
2016/07/06 22:42:46.391426 INFO interface [lo] has flags [73], is loopback [True]
2016/07/06 22:42:46.394650 INFO interface [lo] skipped
2016/07/06 22:42:46.396845 INFO interface [eth0] has flags [4163], is loopback [False]
2016/07/06 22:42:46.399842 INFO interface [eth0] selected
2016/07/06 22:42:46.761722 INFO Configure routes
2016/07/06 22:42:46.765749 INFO Gateway:10.79.118.1
2016/07/06 22:42:46.768153 INFO Routes:None
2016/07/06 22:42:46.774839 INFO Wire server endpoint:10.79.118.70
2016/07/06 22:42:46.785011 INFO Fabric preferred wire protocol version:2015-04-05
2016/07/06 22:42:46.788906 INFO Wire protocol version:2012-11-30
2016/07/06 22:42:46.791991 WARNING Server prefered version:2015-04-05
2016/07/06 22:42:51.786505 INFO Start provisioning
2016/07/06 22:42:51.792058 INFO Handle ovf-env.xml.
2016/07/06 22:42:51.794407 INFO Set host name.
2016/07/06 22:42:51.802240 INFO Publish host name.
2016/07/06 22:42:51.806746 INFO examine /proc/net/route for primary interface
2016/07/06 22:42:51.810016 INFO primary interface is [eth0]
2016/07/06 22:42:51.812497 INFO interface [lo] has flags [73], is loopback [True]
2016/07/06 22:42:51.815282 INFO interface [lo] skipped
2016/07/06 22:42:51.817706 INFO interface [eth0] has flags [4163], is loopback [False]
2016/07/06 22:42:51.820924 INFO interface [eth0] selected
2016/07/06 22:42:51.823519 INFO examine /proc/net/route for primary interface
2016/07/06 22:42:51.826387 INFO primary interface is [eth0]
2016/07/06 22:42:51.828629 INFO interface [lo] has flags [73], is loopback [True]
2016/07/06 22:42:51.832145 INFO interface [lo] skipped
2016/07/06 22:42:51.834676 INFO interface [eth0] has flags [4163], is loopback [False]
2016/07/06 22:42:51.837769 INFO interface [eth0] selected
2016/07/06 22:42:58.009166 INFO Create user account if not exists
2016/07/06 22:42:59.176656 INFO Set user password.
2016/07/06 22:42:59.926034 INFO Configure sudoer
2016/07/06 22:42:59.929092 INFO Configure sshd
2016/07/06 22:42:59.931946 INFO Enabled SSH password-based authentication methods.
2016/07/06 22:42:59.934586 INFO Configured SSH client probing to keep connections alive.
2016/07/06 22:43:00.130443 INFO Deploy ssh public key.
2016/07/06 22:43:03.992292 INFO Finished provisioning
2016/07/06 22:43:06.925005 INFO Event: name=WALA, op=Provision, message=Provision succeed
2016/07/06 22:43:07.009455 INFO Wire server endpoint:10.79.118.70
2016/07/06 22:43:07.016045 INFO Start env monitor service.
2016/07/06 22:43:07.018653 INFO Configure routes
2016/07/06 22:43:07.020988 INFO Event: name=WALA, op=HeartBeat, message=
2016/07/06 22:43:07.023875 INFO Gateway:None
2016/07/06 22:43:07.025860 INFO Routes:None
2016/07/06 22:43:07.054966 INFO RDMA capabilities are not enabled, skipping
2016/07/06 22:43:07.058891 INFO Set block dev timeout: sda with timeout: 300
2016/07/06 22:43:07.072696 INFO Set block dev timeout: sdb with timeout: 300
2016/07/06 22:43:07.208920 INFO Wire server endpoint:10.79.118.70
2016/07/06 22:43:07.230350 INFO Check for guest agent updates
2016/07/06 22:43:07.330701 INFO Wire server endpoint:10.79.118.70
2016/07/06 22:43:07.344273 INFO Handle extensions updates for incarnation 1
2016/07/06 22:43:07.347501 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Expected handler state: enabled
2016/07/06 22:43:07.351591 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Decide which version to use
2016/07/06 22:43:07.510363 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Use version: 1.1.1606092330
2016/07/06 22:43:07.514915 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Current handler state is: NotInstalled
2016/07/06 22:43:07.519824 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Download extension package
2016/07/06 22:43:11.332846 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Unpack extension package
2016/07/06 22:43:11.536544 INFO Event: name=Microsoft.Azure.Extensions.DockerExtension, op=Download, message=Download succeeded
2016/07/06 22:43:11.541981 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Initialize extension directory
2016/07/06 22:43:11.547497 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Update settings file: 0.settings
2016/07/06 22:43:11.551786 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Install extension.
2016/07/06 22:43:11.556796 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Launch command:bin/docker-extension install
2016/07/06 22:43:11.571680 INFO Event: name=Microsoft.Azure.Extensions.DockerExtension, op=Install, message=Launch command succeeded: bin/docker-extension install
2016/07/06 22:43:11.578204 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Enable extension.
2016/07/06 22:43:11.582091 INFO [Microsoft.Azure.Extensions.DockerExtension-1.1.1606092330] Launch command:scripts/run-in-background.sh enable
2016/07/06 22:43:11.701715 INFO Event: name=Microsoft.Azure.Extensions.DockerExtension, op=Enable, message=Launch command succeeded: scripts/run-in-background.sh enable
2016/07/06 23:13:08.937092 INFO Event: name=WALA, op=HeartBeat, message=

Implement retry for reading HandlerEnvironment.json

“In rare cases a handler might encounter errors when trying to read the HandlerEnvironment.json file, since the Azure Agent might be writing the file at the same time as well. The handler should be capable of handling such errors.”

We need an exponential backoff retry here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.