Timeout before mysql container is launched (docker-compose section of the tutorial)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, docker-compose, mysql
- Área
- devops, infrastructure
Línea de trabajo
Read the docker-compose section of the tutorial and the linked commit that introduced the 10-second timeout. Compare the wait-port and depends_on healthcheck suggestions, then verify that the app waits for MySQL to become ready without timing out on slower machines.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since this commit which add a 10s timeout an older issue is back.
The timeout was removed because it was creating a problem with slow/busy machine which wasn't able to have the mysql container ready before the timeout (which was 15s at that time). In my case I have experiencing the same issue, my mysql container take a bit more than 2min to be fully ready.
Suggestions
Put a much longer timeout, using wait-port or the depends_on condition with the healthcheck instruction in the docker-compose.yaml for example:
app:
...
depends_on:
mysql:
condition: service_healthy
mysql:
...
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 40
(This will take a bit more time than the wait-port solution because the app container will wait the mysql container to be fully ready before starting)
PS: Also wondering how this can take 2min for me (with 8Go RAM and an i5-4210H CPU @ 2.90GHz × 4) when for other people it's look like to take less than 10s.
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.1k
- Forks
- 6.3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de docker/getting-started
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
docker/getting-started#481 · 2 comentarios · 5 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
docker/getting-started#494 ·
-
ChatAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
docker/getting-started#482 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
docker/getting-started#477 ·
-
ToeySuKhothaiAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 1/100
docker/getting-started#476 ·
Todos los issues de docker/getting-started
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Falló el respaldo diarioAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
manuXD270516/descanso#80 ·
Los mantenedores suelen responder en 2 días
-
feat: Warn while typing a forbidden character in a file namePosiblemente ocupada @Mittalnew la tomó hoy. Abiertoapp Drive 📁 enhancement OO Docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
linagora/twake-drive#4620 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
国战吕蒙【谋断】问题Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Edit: Hello TasteAbiertochannels:edit check:passed
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día