mongo command line is not generated correctly when using Podman as backend
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- docker, docker-compose
- Domain
- devops, infrastructure
Research direction
Start with lib/docker-compose.mongo.yml and inspect how the Mongo command is defined for the container. Run the toolkit with Podman to reproduce the command-generation failure, then verify that the generated command invokes mongod with --replSet overleaf rather than treating --replSet as the executable.
Written by the indexing model from the issue text.
Description
Description
When running Overleaf with Podman (v5.6.0) as the backend and using the following docker-compose.mongo.yml configuration:
---
services:
mongo:
restart: always
image: "${MONGO_DOCKER_IMAGE}"
command: "${MONGO_ARGS}"
container_name: mongo
volumes:
- "${MONGO_DATA_PATH}:/data/db"
expose:
- 27017
healthcheck:
test: echo 'db.stats().ok' | ${MONGOSH} localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
sharelatex:
depends_on:
mongo:
condition: service_healthy
links:
- mongo
with Podman, it tries to execute --replSet overleaf directly, resulting in the error:
executable file not found in $PATH: No such file or directory: "--replSet"
Steps to reproduce
Just run the toolkit with podman as the provider of the container service.
Expected behavior
Podman should append the command to the image's ENTRYPOINT, just like Docker does, so that "mongod --replSet overleaf" is executed.
Actual behavior
Podman tries to execute --replSet overleaf directly, which fails.
Environment
Client: Podman Engine
Version: 5.6.0
API Version: 5.6.0
Go Version: go1.25.3 (Red Hat 1.25.3-1.el10_1)
Git Commit: b194cd996eb74ecf0ff67d710d4b2aaa90e1c27e
Built: Mon Jan 12 08:00:00 2026
Build Origin: Rocky Linux Build System releng@rockylinux.org
OS/Arch: linux/amd64
Additional context
- This works as expected in Docker
- This can be solved by manually setting the command in "lib/docker-compose.mongo.yml" as "mongod --replSet overleaf".
- Dominant language
- Shell
- Stars
- 1.3k
- Forks
- 310
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
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.
More from overleaf/toolkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Comments export Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in overleaf/toolkit
Similar issues
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·
-
area: compat bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
zenhub-dev
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenLiberty/ci.docker#747 ·