One-click quick installation script for docker and compose

This article introduces how to quickly install docker and compose. Compared with manual installation, one-click installation eliminates the tedious steps of manually entering commands and is less error-prone. Due to the domestic network environment, the connection to the official docker server is abnormally slow, which is reflected in the fact that the installation of docker-engine and the pulling of images in China are very slow, and it is even impossible to install and pull. This script solves the problem by replacing the repository and registry mirror.

Script features

For docker-engine installation, the scripting features are as follows:

  • Support centos7, ubuntu, debian system installation
  • Support for installing specific versions of docker
  • Automatically select a faster repository according to the test results of the network environment, such as mirrors.ustc.edu.cn in China and dockerproject.org in foreign countries
  • Automatically set up hub-mirror.c.163.com registry mirror for China through the test network

For the installation of compose, the script features are as follows:

  • Supports installation on all Linux systems
  • Support for installing specific versions of compose
  • Since compose is hosted on amazonaws, it is almost inaccessible in China, and a proxy download is automatically set

Instructions

 

After that, a menu will pop up, enter 2 to select Some Useful Tools.
Then enter 17 to select to install docker, and enter 18 to select to install compose.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326174352&siteId=291194637