Docker Container Exits Immediately
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
Hello all,
I was able to successfully build an image from the Dockerfile.
sudo docker build .

Then, I run the docker image to create a container
sudo docker run -d feb159d1a620

However, it appears to exit immediately, as I have no running containers, and everytime I run, it stops immediately.

Running docker logs seems to show no errors.
Ideally I want to attach to the container and run commands like:
bin/opensfm_run_all data/berlin
I know I am probably missing something pretty basic here, but I am a novice when it comes to Docker. Thanks so much in advance!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the repository's Dockerfile and the behavior of sudo docker run -d feb159d1a620; check the stopped container's logs and its configured command. Determine why the container exits immediately and verify that it remains available for running bin/opensfm_run_all data/berlin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100