aks-engine/releases
Jack Francis 552b6ebe42
Quick documentation rationalization (#152)
2018-12-14 15:52:32 -08:00
..
Dockerfile.linux Quick documentation rationalization (#152) 2018-12-14 15:52:32 -08:00
README.Dockerfile.md Quick documentation rationalization (#152) 2018-12-14 15:52:32 -08:00

README.Dockerfile.md

Build Docker image

Bash

$ VERSION=0.16.0
$ docker build --no-cache --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg AKSENGINE_VERSION="$VERSION" -t microsoft/aks-engine:$VERSION --file ./Dockerfile.linux .

PowerShell

PS> $VERSION="0.16.0"
PS> docker build --no-cache --build-arg BUILD_DATE=$(Get-Date((Get-Date).ToUniversalTime()) -UFormat "%Y-%m-%dT%H:%M:%SZ") --build-arg AKSENGINE_VERSION="$VERSION" -t microsoft/aks-engine:$VERSION --file .\Dockerfile.linux .

Inspect Docker image metadata

Bash

$ docker image inspect microsoft/aks-engine:0.16.0 --format "{{json .Config.Labels}}" | jq
{
  "maintainer": "Microsoft",
  "org.label-schema.build-date": "2017-10-25T04:35:06Z",
  "org.label-schema.description": "The Azure Kubernetes Engine (aks-engine) generates ARM (Azure Resource Manager) templates for Kubernetes clusters on Microsoft Azure with your choice of DCOS, Kubernetes, or Swarm orchestrators.",
  "org.label-schema.docker.cmd": "docker run -v ${PWD}:/aks-engine/workspace -it --rm microsoft/aks-engine:0.16.0",
  "org.label-schema.license": "MIT",
  "org.label-schema.name": "Azure Kubernetes Engine (aks-engine)",
  "org.label-schema.schema-version": "1.0",
  "org.label-schema.url": "https://github.com/Azure/aks-engine",
  "org.label-schema.usage": "https://github.com/Azure/aks-engine/blob/master/docs/aksengine.md",
  "org.label-schema.vcs-url": "https://github.com/Azure/aks-engine.git",
  "org.label-schema.vendor": "Microsoft",
  "org.label-schema.version": "0.16.0"
}

PowerShell

PS> docker image inspect microsoft/aks-engine:0.16.0 --format "{{json .Config.Labels}}" | ConvertFrom-Json | ConvertTo-Json
{
    "maintainer":  "Microsoft",
    "org.label-schema.build-date":  "2017-10-25T04:35:06Z",
    "org.label-schema.description":  "The Azure Kubernetes Engine (aks-engine) generates ARM (Azure Resource Manager) templates for Kubernetes clusters on Microsoft Azure with your choice of DCOS, Kubernetes, or Swarm orchestrators.",
    "org.label-schema.docker.cmd":  "docker run -v ${PWD}:/aks-engine/workspace -it --rm microsoft/aks-engine:0.16.0",
    "org.label-schema.license":  "MIT",
    "org.label-schema.name":  "Azure Kubernetes Engine (aks-engine)",
    "org.label-schema.schema-version":  "1.0",
    "org.label-schema.url":  "https://github.com/Azure/aks-engine",
    "org.label-schema.usage":  "https://github.com/Azure/aks-engine/blob/master/docs/aksengine.md",
    "org.label-schema.vcs-url":  "https://github.com/Azure/aks-engine.git",
    "org.label-schema.vendor":  "Microsoft",
    "org.label-schema.version":  "0.16.0"
}

Run Docker image

$ docker run -v ${PWD}:/aks-engine/workspace -it --rm microsoft/aks-engine:0.16.0