run the Drill Docker container in detached mode will exit automatically
- Lingua principale
- Java
- Stelle
- 2k
- Fork
- 990
- Merge medio
- 1g 8h
- PR unite (30g)
- 5
Descrizione
**Drill version**
latest (1.21.1)
**Describe the bug**
I am following the doc [running drill in docker](https://drill.apache.org/docs/running-drill-on-docker/#running-the-drill-docker-container-in-detached-mode).
**To Reproduce**
I want to run the Drill Docker container in detached mode, so I run this command:
```
docker run --name drill -p 8047:8047 -p 31010:31010 --detach apache/drill
```
as stated in the document, but the container exits automatically a few seconds later.
Then, I try to run the Drill Docker Container in Foreground Mode:
```
docker run -it --name drill -p 8047:8047 -p 31010:31010 apache/drill
```
It starts correctly, but when I run `$DRILL_HOME/bin/drill-embedded` in the container, the container exits too, and it logs
```
apache drill> Killed
```
so I think maybe the problem lies in `$DRILL_HOME/bin/drill-embedded` this command.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dalla documentazione collegata «eseguire Drill su Docker» e dal comportamento del container `apache/drill` mostrato dai comandi detached e foreground. Esamina il modo in cui il container invoca `$DRILL_HOME/bin/drill-embedded` e usa il log `Killed` riportato per confrontare entrambe le modalità. Il lavoro è completato quando il comando detached documentato mantiene il container in esecuzione e l'avvio in foreground non termina più inaspettatamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker
- Ambito
- devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100