This commit is contained in:
archer
2023-05-13 00:30:30 +08:00
parent 9a0c92629b
commit 4ec02c654b
7 changed files with 20 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ docker-compose up -d
echo "Docker Compose 重新拉取镜像完成!"
# 删除本地旧镜像
images=$(docker images --format "{{.ID}} {{.Repository}}" | grep fast-gpt)
images=$(docker images --format "{{.ID}} {{.Repository}}" | grep fastgpt)
# 将镜像 ID 和名称放入数组中
IFS=$'\n' read -rd '' -a image_array <<<"$images"