This commit is contained in:
ZhuoQinghui 2022-03-03 14:14:53 +08:00
parent 89200b801a
commit 64d817fe60

View File

@ -20,20 +20,15 @@ mkdir -p /opt/docker-run/redis/conf
echo "创建Redis配置文件"
touch /opt/docker-run/redis/conf/redis.conf
echo "清空旧配置"
cat /dev/null > /opt/docker-run/redis/conf/redis.conf
echo "写入新配置"
cat <<EOF >> /opt/docker-run/redis/conf/redis.conf
bind \$host
bind $host
daemonize NO
protected-mode no
requirepass $password
EOF
#tee /opt/docker-run/redis/conf/redis.conf <<-'EOF'
#bind \$host
#daemonize NO
#protected-mode no
#requirepass \$password
#EOF
echo "拉取镜像"
docker pull redis:latest