This commit is contained in:
陆柯 2022-06-19 22:20:50 +08:00
parent 199eac4c42
commit cab74d2c75
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
# https://docs.docker.com/engine/install/debian/
echo "=== Choose docker source (a: 阿里云, z: 中科大, leave blank for default):"
@ -38,7 +40,10 @@ sudo chmod +x /usr/local/bin/docker-compose
echo "=== 配置中国加速镜像源 /etc/docker/daemon.json (d: Docker中国, t: 腾讯云, z: 中科大, leave blank for no mirror):"
read -p ">>> " DOCKER_MIRROR
if [ $DOCKER_MIRROR = 'd' ]
if [ ! $DOCKER_MIRROR ]
then
echo "--- Docker mirror is not specified. Exit now."
elif [ $DOCKER_MIRROR = 'd' ]
then
DOCKER_MIRROR=https://registry.docker-cn.com
elif [ $DOCKER_MIRROR = 't' ]

4
linux-port.sh Normal file
View File

@ -0,0 +1,4 @@
echo "=== 需要查看的端口号:"
read -p ">>> " PORT
netstat -tunlp |rep $PORT