Skip to content

Instantly share code, notes, and snippets.

View guptaashwanee's full-sized avatar
🚀
Future generation explorer 🔮

Ashwanee Kumar Gupta guptaashwanee

🚀
Future generation explorer 🔮
View GitHub Profile
@guptaashwanee
guptaashwanee / mongoDump.md
Last active July 5, 2024 04:20
Creata a mongo dump from running docker instance and restore again

Mongo Dump

docker ps
docker exec <container_id_or_name> mongodump --username <username> --password <password> --authenticationDatabase <auth_db> --out /backup
docker cp :/backup ./backup
@guptaashwanee
guptaashwanee / installDocker.sh
Created July 3, 2023 05:07
Docker Installation Script
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg