2020
12-02
12-02
docker和docker-compose一键安装教程(支持在线和离线)
shell脚本#!/bin/sh#当前目录CURRENT_DIR=$(cd"$(dirname"$0")"pwd)#Installdockerifwhichdocker>/dev/null;thenecho"检测到Docker已安装,跳过安装步骤"docker-vecho"启动Docker"servicedockerstart2>&1|tee-a${CURRENT_DIR}/install.logelseif[[-d"$CURRENT_DIR/docker"]];thenecho"...离线安装docker"cp$CURRENT_DIR/docker/centos-local.tgz/root/cd/root&&tar-xvzfcentos...
继续阅读 >