change === and >>> to ::*** and ***::
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
# 安装自带版本 apt install docker.io && apt install docker-compose
|
||||
# sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||
|
||||
echo "#<<< Option 1: Install docker with latest official repositories, Option 2: Install docker with default (maybe outdated) linux repositories (sudo apt install docker.io && sudo apt install docker-compose && sudo snap install docker)"
|
||||
echo "#<<< Choose docker source: [a] 阿里云, [z] 中科大, [leave blank] for default"
|
||||
read -p "#>>> " DOCKER_SOURCE
|
||||
echo "::*** Option 1: Install docker with latest official repositories, Option 2: Install docker with default (maybe outdated) linux repositories (sudo apt install docker.io && sudo apt install docker-compose && sudo snap install docker)"
|
||||
echo "::*** Choose docker source: [a] 阿里云, [z] 中科大, [leave blank] for default"
|
||||
read -p "***:: " DOCKER_SOURCE
|
||||
if [ "$DOCKER_SOURCE" = 'a' ]
|
||||
then
|
||||
GPG_URL=http://mirrors.aliyun.com/docker-ce/linux/debian/gpg
|
||||
@@ -49,8 +49,8 @@ docker compose version
|
||||
# sudo curl -L $COMPOSE_URL/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
||||
# sudo chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
echo "#<<< Enter [y] to 配置中国加速镜像源 /etc/docker/daemon.json, [anything else] for no mirror:"
|
||||
read -p "#>>> " DOCKER_MIRROR
|
||||
echo "::*** Enter [y] to 配置中国加速镜像源 /etc/docker/daemon.json, [anything else] for no mirror:"
|
||||
read -p "***:: " DOCKER_MIRROR
|
||||
if [ "$DOCKER_MIRROR" = 'y' ]
|
||||
then
|
||||
echo '{ "registry-mirrors": [' > /etc/docker/daemon.json
|
||||
@@ -62,8 +62,8 @@ then
|
||||
echo '] }' >> /etc/docker/daemon.json
|
||||
fi
|
||||
|
||||
echo "#<<< 启动docker服务?[y] for yes, [anything else] for no"
|
||||
read -p "#>>> " StartDockerDaemon
|
||||
echo "::*** 启动docker服务?[y] for yes, [anything else] for no"
|
||||
read -p "***:: " StartDockerDaemon
|
||||
if [ "$StartDockerDaemon" = 'y' ]
|
||||
then
|
||||
sudo systemctl enable docker # 开机启动
|
||||
|
||||
Reference in New Issue
Block a user