Home > other >  Share how to use Azure CLI deployment on the Docker mirror
Share how to use Azure CLI deployment on the Docker mirror

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, in this case, use CentOS 7.2 as the Host,

2. Update the system, make the system achieve the latest state:
 sudo yum update 



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


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



Start the Docker:
 $sudo service docker start 


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



In order to avoid each run sudo docker commands are input, can be your current users join into the docker group, it is good to logout and then login:
 sudo usermod - aG docker your_username 


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 used in the speed is very slow, you can click here to view the solution,
  • Related