apache / apache/drill

run the Drill Docker container in detached mode will exit automatically

Open
#2,829 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2k
Forks
990
Avg merge
1d 8h
Merged PRs (30d)
5

Description

**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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked “running Drill on Docker” documentation and the `apache/drill` container behavior shown by the detached and foreground commands. Inspect how the container invokes `$DRILL_HOME/bin/drill-embedded` and use the reported `Killed` log to compare both modes. Done means the documented detached command keeps the container running and foreground startup no longer exits unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.