Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/mongodb] username and pass at first run #75712

Open
nerdkal opened this issue Dec 11, 2024 · 2 comments
Open

[bitnami/mongodb] username and pass at first run #75712

nerdkal opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
mongodb tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@nerdkal
Copy link

nerdkal commented Dec 11, 2024

Name and Version

mongodb:latest

What architecture are you using?

amd64

What steps will reproduce the bug?

docker run --name mongodb   -e MONGODB_USERNAME=user1 -e MONGODB_PASSWORD=pass123   -e MONGODB_DATABASE=ticker bitnami/mongodb:latest

What is the expected behavior?

Screenshot From 2024-12-11 18-42-08

What do you see instead?

mongodb 21:35:35.88 ERROR ==> The MONGODB_ROOT_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with a blank root password. This is only recommended for development.

Additional information

As a solution for the user issue, I tried to create a dockerfile using bitnami/mongodb but I couldn't run RUN chmod +x /docker-entrypoint-initdb.d/setup-mongo.sh either, it could solve this issue if I could create a user to the database using my script. Is there a way I could do that?

btw: Nice work

@nerdkal nerdkal added the tech-issues The user has a technical issue about an application label Dec 11, 2024
@github-actions github-actions bot added the triage Triage is needed label Dec 11, 2024
@carrodher
Copy link
Member

As stated in the error message, you need to set either a valid MONGODB_ROOT_PASSWORD or ALLOW_EMPTY_PASSWORD=yes.

@nerdkal
Copy link
Author

nerdkal commented Dec 13, 2024 via email

@carrodher carrodher changed the title username and pass at first run [bitnami/mongodb] username and pass at first run Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants