Skip to content

Instantly share code, notes, and snippets.

@nulligor
Created May 14, 2019 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nulligor/1f7504664458752fd658bccaeb091690 to your computer and use it in GitHub Desktop.
Save nulligor/1f7504664458752fd658bccaeb091690 to your computer and use it in GitHub Desktop.
Docker commands
# Clean everything
docker container stop $(docker container ls -a -q) && docker system prune -a -f --volumes
# Dockerized Mongo
docker run --name mongoinstance -d --rm -p 27017:27017 -v mongodb:/mongo/db mongo:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment