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

Abierto
#160 6 comentarios 4 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, docker-compose, go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
4.1k
Forks
157
Merge medio
4 h 35 min
PR fusionados (30 d)
15

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de offen/docker-volume-backup

Todos los issues de offen/docker-volume-backup

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.