We can create a Docker on Ubuntu Server in Azure, and then pull image from hub.docker.com.
Launch an Azure instance
- Open the Portal in Azure at https://portal.azure.com
- Click Virtual Machines on left sidebar.
- Click “+ ADD” to create a new instance
- Type “docker” in search box, and select ”Docker on Ubuntu Server”
- Click “Create” on the introduction page
- Fill your host name, user name, authentication.
- Click Pricing Tier, and choise A2 or A3
- Click “create” to create the instance
Connect to the instance
- Open the Portal in Azure at https://portal.azure.com
- Click All resources on left sidebar.
- Select your “Virtual machine (classic)” or “Cloud service”
- find Public IP addresses in “Overview”
- Login via command “ssh your-username@public-ip” in *nix or using putty for windows
Start a docker container
Most of the related application are already installed, you can also install other apps with command “apt-get”.
For example:
and then execute
to clone related data.
You can start docker with command
Please follow this guide to start and stop services.
Tip
You may use tmux to make your life better.