Files

23 lines
553 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 国内 VPS仅拉取 Listmonk 栈Go + Postgres Alpine
set -eu
MIRRORS=(docker.1ms.run dockerproxy.net)
pull_one() {
local src="$1"
local dst="$2"
for m in "${MIRRORS[@]}"; do
echo "==> pull ${m}/${src}"
if docker pull "${m}/${src}"; then
docker tag "${m}/${src}" "${dst}"
return 0
fi
done
docker pull "${dst}"
}
pull_one "library/postgres:16-alpine" "postgres:16-alpine"
pull_one "listmonk/listmonk:v5.0.0" "listmonk/listmonk:v5.0.0"
docker images | grep -E 'postgres|listmonk' || true