Skip to content

Instantly share code, notes, and snippets.

@verticonaut
Created January 17, 2018 12:57
Show Gist options
  • Save verticonaut/4794d66548926f31fd8e13dfd7c5fa0d to your computer and use it in GitHub Desktop.
Save verticonaut/4794d66548926f31fd8e13dfd7c5fa0d to your computer and use it in GitHub Desktop.
Docker commands
docker ps
# running docker container
docker stop <contaienrId>
# stop the container
docker images
# list all installed images
# Start containers ==========================================
# REDIS
docker run -it --rm -p 6379:6379 -d --name redis redis:alpine
# POSTGRES
docker run -it --rm -p 5432:5432 -d --name postgres postgres:alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment