Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
Created September 9, 2015 02:18
Show Gist options
  • Select an option

  • Save lopezjurip/b22a94fca1cab1804c01 to your computer and use it in GitHub Desktop.

Select an option

Save lopezjurip/b22a94fca1cab1804c01 to your computer and use it in GitHub Desktop.
Azure CLI - Create Docker

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download

Import that file:

azure account import ROUTE_TO_FILE

# Example:
azure account import /user/Desktop/XXXXXXX-x-x-xxxx-credentials.publishsettings

Check it with:

azure account list

Find Ubuntu LTS image:

azure vm image list | grep Ubuntu

Let say we will use b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20150805-en-us-30GB:

# Make sure to change <name> to your server name, <username> <password> to log into it.
azure vm docker create -e 22 -l "West US" <name> "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20150805-en-us-30GB" <username> <password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment