One liner to stop / remove all of Docker containers:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt
docker exec -it mycontainername bash
#restore mongo db
mongorestore --drop -d database-name directory-of-dumped-backup
Link mongo with node like this: docker run --link=myMongoDB:mongodb -it node
https://www.thachmai.info/2015/05/10/docker-container-linking-mongo-node/