{"id":40450622,"url":"https://github.com/rtsp/docker-mongosh","last_synced_at":"2026-01-20T17:16:59.407Z","repository":{"id":38322214,"uuid":"402013303","full_name":"rtsp/docker-mongosh","owner":"rtsp","description":"Debian Docker image with MongoDB Shell preinstalled","archived":false,"fork":false,"pushed_at":"2026-01-17T11:55:09.000Z","size":405,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T22:33:43.994Z","etag":null,"topics":["debian","docker","docker-image","mongo","mongosh","mongoshell"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/rtsp/mongosh","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtsp.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-01T10:01:24.000Z","updated_at":"2026-01-17T11:55:02.000Z","dependencies_parsed_at":"2025-12-20T07:02:35.130Z","dependency_job_id":null,"html_url":"https://github.com/rtsp/docker-mongosh","commit_stats":null,"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"purl":"pkg:github/rtsp/docker-mongosh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsp%2Fdocker-mongosh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsp%2Fdocker-mongosh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsp%2Fdocker-mongosh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsp%2Fdocker-mongosh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtsp","download_url":"https://codeload.github.com/rtsp/docker-mongosh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsp%2Fdocker-mongosh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["debian","docker","docker-image","mongo","mongosh","mongoshell"],"created_at":"2026-01-20T17:16:58.646Z","updated_at":"2026-01-20T17:16:59.387Z","avatar_url":"https://github.com/rtsp.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RTSP MongoDB Shell Docker Image\n\nDebian with [MongoDB Shell (mongosh)](https://docs.mongodb.com/mongodb-shell/) included.\n\n\n## `mongosh` Usage\n\nFor the `mongosh` command usage, please refer to the following documents.\n\n- [Connect to a Deployment](https://docs.mongodb.com/mongodb-shell/connect/)\n- [`mongosh` Usage](https://docs.mongodb.com/mongodb-shell/run-commands/)\n  - [Perform CRUD Operations](https://docs.mongodb.com/mongodb-shell/crud/)\n  - [Run Aggregation Pipelines](https://docs.mongodb.com/mongodb-shell/run-agg-pipelines/)\n- [`mongosh` Options](https://docs.mongodb.com/mongodb-shell/reference/options/)\n\n\n## Usage\n\nIn order to use image from GitHub Container Registry instead of Docker Hub, you can replace `rtsp/mongosh` with `ghcr.io/rtsp/docker-mongosh` anywhere in the instruction below.\n\n### Pull Image\n\n```ShellSession\ndocker pull rtsp/mongosh\n```\n\n### Interactive Mode\n\n```ShellSession\ndocker run --rm -it rtsp/mongosh mongosh -- mongodb://172.17.0.1:27017\n```\n\n```ShellSession\ndocker run --rm -it rtsp/mongosh bash\n```\n\n### Run a Specific Command\n\n```ShellSession\ndocker run --rm rtsp/mongosh mongosh -- mongodb://172.17.0.1:27017 --eval 'db.serverStatus()'\n```\n\n### Run as Daemon\n\n```ShellSession\ndocker run -d --name mongosh rtsp/mongosh\n```\n\n```ShellSession\ndocker exec mongosh mongosh -- mongodb://172.17.0.1:27017 --eval 'db.serverStatus()'\n\ndocker exec -it mongosh mongosh -- mongodb://172.17.0.1:27017\n\ndocker exec -it mongosh bash\n```\n\n### Run as Kubernetes Pod\n\n```yaml\n---\napiVersion: v1\nkind: Pod\nmetadata:\n  name: mongosh\nspec:\n  containers:\n  - name: mongosh\n    image: rtsp/mongosh:latest\n```\n\n```ShellSession\nkubectl exec mongosh -- mongosh mongodb://ENDPOINT:27017 --eval 'db.serverStatus()'\n\nkubectl exec -it mongosh -- mongosh mongodb://ENDPOINT:27017\n\nkubectl exec -it mongosh -- bash\n```\n\n### Run as Kubernetes Deployment\n\n```yaml\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: mongosh\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      name: mongosh\n  template:\n    metadata:\n      labels:\n        name: mongosh\n    spec:\n      containers:\n        - name: mongosh\n          image: rtsp/mongosh:latest\n          imagePullPolicy: Always\n```\n\n```ShellSession\nkubectl exec deployment/mongosh -- mongosh mongodb://ENDPOINT:27017 --eval 'db.serverStatus()'\n\nkubectl exec -it deployment/mongosh -- mongosh mongodb://ENDPOINT:27017\n\nkubectl exec -it deployment/mongosh -- bash\n```\n\n\n\n## Links\n\n### Packages\n\n- Docker Hub: [rtsp/mongosh](https://hub.docker.com/r/rtsp/mongosh/)\n- GitHub: [ghcr.io/rtsp/docker-mongosh](https://github.com/rtsp/docker-mongosh/pkgs/container/docker-mongosh)\n\n### Source Code\n\n- [rtsp/docker-mongosh](https://github.com/rtsp/docker-mongosh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtsp%2Fdocker-mongosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtsp%2Fdocker-mongosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtsp%2Fdocker-mongosh/lists"}