Ubuntu based image with mongodb-tools installed
# Docker Hub
docker pull lironer/mongodb-tools
# GitHub Container Registry
docker pull ghcr.io/lironer/mongodb-tools
For example, run the command mongodump
to backup Mongo DB:
docker run --rm -it -v "$PWD"/data:/data lironer/mongodb-tools mongodump --host localhost --port 27017 --db test --gzip --archive="/data/backup.gz"