{"id":23491332,"url":"https://github.com/aeron/mongosh-docker","last_synced_at":"2025-04-14T22:48:49.331Z","repository":{"id":40465078,"uuid":"463255009","full_name":"Aeron/mongosh-docker","owner":"Aeron","description":"Compact mongosh container image for interactive usage.","archived":false,"fork":false,"pushed_at":"2025-01-16T20:31:13.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T22:48:40.597Z","etag":null,"topics":["container-image","docker-image","interactive","minideb","mongodb-cli","mongosh"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aeron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-24T18:14:43.000Z","updated_at":"2025-01-16T20:30:25.000Z","dependencies_parsed_at":"2024-01-26T23:29:25.614Z","dependency_job_id":"8767ff38-3388-4fa3-b68c-a87968f88d8c","html_url":"https://github.com/Aeron/mongosh-docker","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aeron%2Fmongosh-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aeron%2Fmongosh-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aeron%2Fmongosh-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aeron%2Fmongosh-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aeron","download_url":"https://codeload.github.com/Aeron/mongosh-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975299,"owners_count":21192199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container-image","docker-image","interactive","minideb","mongodb-cli","mongosh"],"created_at":"2024-12-25T01:26:54.439Z","updated_at":"2025-04-14T22:48:49.308Z","avatar_url":"https://github.com/Aeron.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Shell Docker Image\n\nA compact [`mongosh`][mongosh] Docker image based on [`bitnami/minideb`][bitnami]\nbase image.\n\n**For interactive usage only**. No bells and whistles included.\n\n[mongosh]: https://docs.mongodb.com/mongodb-shell\n[bitnami]: https://hub.docker.com/r/bitnami/minideb\n\n## Usage\n\nThis image is available as [`docker.io/aeron/mongosh`][docker] and\n[`ghcr.io/Aeron/mongosh`][github]. You can use them both interchangeably.\n\n```sh\ndocker pull docker.io/aeron/mongosh\n# …or…\ndocker pull ghcr.io/aeron/mongosh\n```\n\n[docker]: https://hub.docker.com/r/aeron/mongosh\n[github]: https://github.com/Aeron/mongosh-docker/pkgs/container/mongosh\n\n### Interactive Mode (Docker)\n\nRun a container and pass a Mongo URI string, like the following:\n\n```sh\ndocker run -it --rm aeron/mongosh:latest -- $MONGO_URI\n# …or…\ndocker run -it --rm aeron/mongosh:latest -- mongodb://127.0.0.1:27017\n```\n\nAny [CLI options][options] `mongosh` supports could be provided alike:\n\n```sh\ndocker run -it --rm aeron/mongosh:latest -- $MONGO_URI \\\n    --nodb \\\n    --eval 'disableTelemetry()'\n```\n\n[options]: https://docs.mongodb.com/mongodb-shell/reference/options\n\n### Interactive Mode (Kubernetes)\n\nRun a container inside a Kube cluster in a similar manner:\n\n```sh\nkubectl run mongosh --rm --tty -i --restart=Never \\\n    --image aeron/mongosh:latest -- $MONGO_URI\n```\n\nCLI options and everything else is the same here.\n\n### Daemon Mode\n\nNope, not going to happen. It’s not the purpose of this image.\n\nIf you actually need it, feel free to use this image as a basis. Then you need to\ninstall the `coreutils` package and change Dockerfile’s entrypoint directive to\n`[\"sleep\" \"infinity\"]`.\n\nOr use a different image that allows that. It’d be more painless, probably.\n\n## Acknowledgment\n\nThe [`mongosh`][mongosh] is an open-source project made by [MongoDB Inc][mongodb] and\nits contributors, available under [Apache 2.0 license][license].\n\n[mongodb]: https://github.com/mongodb-js\n[license]: https://opensource.org/license/apache-2-0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeron%2Fmongosh-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faeron%2Fmongosh-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeron%2Fmongosh-docker/lists"}