Containers that provides network service to other containers should be backed up first

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, docker-compose, go
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Start by tracing the backup flow that stops and restarts containers; the issue does not name a file or test, so locate the relevant entry point and existing tests. Reproduce with three Compose containers where B and C use A's network, then check that A is stopped, backed up, and restarted before B and C are restarted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement pr welcome

Describe the bug
Currently, it seems like the sequence of stopping and starting containers during backup is somewhat arbitrary. This causes an issue if one or more of the containers are using another container as the network provider and the dependent container is started before the network provider container. In this case the dependent containers fail to start.

To Reproduce
Steps to reproduce the behavior:

  1. Create 3 containers - A, B & C in a docker-compose file
  2. Set network to service:A for container B & C
  3. Run the backup

Expected behavior
Container A is stopped, backed up and restarted. Then containers B & C should be stopped and started again.

Desktop (please complete the following information):

  • Image Version: v2.21.0
  • Docker Version: 20.10.17
  • Docker Compose Version (if applicable): 2.4

Additional Context
The Steps to reproduce above may or may not work depending on whether container A is down when either B or C is being restarted. I'm not quite sure how to have it fail reliably.

Ngôn ngữ chính
Go
Star
4.1k
Fork
157
Merge trung bình
4 giờ 35 phút
Pull request đã merge (30 ngày)
15

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 offen/docker-volume-backup

Tất cả issue của offen/docker-volume-backup

Issue tương tự

Thêm issue về Go

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.