Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add flag similar to --pull always

Đang mở
#1,161 4 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@v-Kaniska244 đang làm issue này rồi.

Từ ngày 28/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

We are using devcontainer cli tools with dockerComposeFile. Our compose file has a number of dependency images.

Docker compose has docker compose --pull always flag that will

  1. Pull images if compose file was changed
  2. Re-create containers only for the services which images were changed

Unfortunately there're no alternatives in devcontainer cli tools:

  • We can use docker compose pull && devcontainer up but it won't re-create updated services;
  • We can use docker compose pull && devcontainer up --remove-existing-container but it will recreate the main (i.e. devcontainer) service even if image wasn't changed. We want to avoid re-creating the main service every time because it runs long postCreate scripts.

Is it possible to provide flag similar to --remove-existing-container that will be translated to --pull always that will recreate only changed services?

Ngôn ngữ chính
TypeScript
Star
3k
Fork
463
Merge trung bình
13 giờ 28 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của devcontainers/cli

Tất cả issue của devcontainers/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.