Skip to content

feat: add docker compose image pull automation script#10

Open
lyydsheep wants to merge 15 commits intoyou8023:mainfrom
lyydsheep:main
Open

feat: add docker compose image pull automation script#10
lyydsheep wants to merge 15 commits intoyou8023:mainfrom
lyydsheep:main

Conversation

@lyydsheep
Copy link
Copy Markdown

镜像批量拉取功能

使用命令:docker_compose_pull
使用yq工具扫描当前目录下所有docker-compose*.yaml文件,并调用docker_pull脚本拉取镜像

测试方法

  1. 安转 yq 工具
$ brew install yq
或
$ apt install yq
  1. 创建测试文件
# docker-compose.test.yaml
services:
  web:
    image: nginx:1.25
  db:
    image: postgres:15-alpine
  cache:
    image: redis:7.2
  1. 执行命令
$ chmod +x docker_compose_pull
$ ./docker_compose_pull

lyydsheep added 2 commits July 2, 2025 11:12
- Add script to automatically pull images from docker-compose files
- Support multiple compose file formats (docker-compose*.yaml)
@lyydsheep lyydsheep changed the title feat: add docker compose image pull automation script feat: add docker compose image pull automation script Related to #9 Jul 2, 2025
@lyydsheep lyydsheep changed the title feat: add docker compose image pull automation script Related to #9 feat: add docker compose image pull automation script Close #9 Jul 2, 2025
@lyydsheep lyydsheep closed this Jul 2, 2025
@lyydsheep lyydsheep reopened this Jul 2, 2025
@lyydsheep lyydsheep changed the title feat: add docker compose image pull automation script Close #9 feat: add docker compose image pull automation script Jul 2, 2025
@lyydsheep
Copy link
Copy Markdown
Author

close #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant