Skip to content

Instantly share code, notes, and snippets.

@D-system
Created November 24, 2019 12:56
Show Gist options
  • Save D-system/b1e92c35fae0b682de5d926a9b928d05 to your computer and use it in GitHub Desktop.
Save D-system/b1e92c35fae0b682de5d926a9b928d05 to your computer and use it in GitHub Desktop.
Docker helper
# docker stop mysql_5.7
# docker run -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=true -e MYSQL_DATABASE=circle_test -e MYSQL_HOST=127.0.0.1 -e MYSQL_USER=root --shm-size 2G --name mysql_5.7 circleci/mysql:5.7-ram
docker restart mysql_5.7
# docker restart postgres_10.5
# docker run -p 5432:5432 -e POSTGRES_PASSWORD=pass -e POSTGRES_USER=postgres --shm-size 2G --name postgres_10.5 circleci/postgres:10.5-alpine-postgis-ram
# docker stop postgres_10.5
docker restart postgres_10.5
# docker run -p 6379:6379 --name redis_5 library/redis:5
docker restart redis_5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment