Home > other >  On the Docker deployment using Azure CLI image
On the Docker deployment using Azure CLI image

Time:09-21

Docker is very popular container technology, in the Docker installation deployment of a variety of tools is very fast and convenient; Microsoft Azure CLI is provided can run on Linux/Mac cross-platform command line management tool, this article shows you how to install the deployment in the Azure Docker and Azure CLI,
1. The first deploy a Linux virtual machine, about how to create a virtual machine, please refer to the Azure related basic document, in this case, use CentOS 7.2 as the Host,
2. Update the system, make the system achieve the latest state:
 sudo yum update 



1. Add the Docker yum repository:
 $sudo tee/etc/yum repos. D/docker. Repo & lt; [dockerrepo] 
Name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/gpgcheck=1gpgkey=https://yum.dockerproject.org/gpg enabled=1
EOF


2. Install the Docker engine and base package:
 $sudo yum install docker - engine 



3. Start the Docker:
 $sudo service docker start 


4. Test the Docker is working correctly:
 $sudo docker run the hello world - 


5. In order to avoid each run sudo docker commands are input, your current user can be added to the docker's group, it is good to logout and then login:
 sudo usermod - aG docker your_username 


6. So far, the Docker engine has been installed, and then we need pull in Docker azure - cli image down, execute the command:
 $docker run - it Microsoft/azure - cli 



If you have found in the use is very slow, can click here to see a solution,

Also welcome to communicate with each other,
  • Related