Skip to content

Instantly share code, notes, and snippets.

@hehehe886
hehehe886 / 自动安装docker
Created April 5, 2020 02:37
bash脚本自动安装docker,增加判断,国内机器替换国内doccker源
# !/bin/bash
function yellow(){
echo -e "\033[33m[$1]\033[0m"
}
function sky_blue(){
echo -e "\033[36m[$1]\033[0m"
}
yellow "----------------step1: update----------------"
sudo apt-get update