1 Star 0 Fork 2

triarii/docker-pull-proxy

forked from tianyue/docker-pull-proxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pull.sh 1010 Bytes
一键复制 编辑 原始数据 按行查看 历史
shanming.sun 提交于 2024-06-09 11:19 . update
# docker pull
# 如果需要特定架构镜像可以手动指定 --platform linux/arm64 , linux/amd64 , linux/arm/v7 等信息
# 查看当前镜像架构信息
# docker image inspect homeassistant/home-assistant:2024.6 | grep Architectur
# "Architecture": "arm64",
# 不指定 cpu 架构
cat trigger.txt |awk '{print "docker pull " $1} '
cat trigger.txt |awk '{print "docker pull " $1} '| sh
#指定 cpu 架构
# cat trigger.txt |awk '{print "docker pull --platform linux/arm64 " $1} '
# cat trigger.txt |awk '{print "docker pull --platform linux/arm64 " $1} '| sh
# inspect Architectur
# cat trigger.txt |awk '{print "docker image inspect " $1 "| grep Architectur" } '
# cat trigger.txt |awk '{print "docker image inspect " $1 "| grep Architectur" } '| sh
# docker tag
cat trigger.txt |awk '{print "docker tag "$1 " " $2} '
cat trigger.txt |awk '{print "docker tag "$1 " " $2} '| sh
# docker push
cat trigger.txt |awk '{print "docker push " $2} '
cat trigger.txt |awk '{print "docker push " $2} '| sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/triarii/docker-pull-proxy.git
git@gitee.com:triarii/docker-pull-proxy.git
triarii
docker-pull-proxy
docker-pull-proxy
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385