Skip to content

Instantly share code, notes, and snippets.

@haunt98
Last active January 16, 2024 17:58
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 haunt98/1b3572c3164ccb81eb43487ee1319dfc to your computer and use it in GitHub Desktop.
Save haunt98/1b3572c3164ccb81eb43487ee1319dfc to your computer and use it in GitHub Desktop.
What to do with docker
# https://hub.docker.com/_/redis
docker run -d -p 6379:6379 -v /docker_data/redis/data:/data --name redis redis redis-server --save 60 1 --loglevel warning

# https://hub.docker.com/_/mysql
docker run -d -p 3306:3306 -v ~/docker_data/mysql-5.7/config:/etc/mysql/conf.d -v ~/docker_data/mysql-5.7/data:/var/lib/mysql -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" --name mysql-5.7 mysql:5.7

# https://docs.percona.com/percona-server/5.7/installation/docker.html
docker run -d -p 6603:3306 -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" --name percona-5.7 percona/percona-server:5.7

# https://min.io/docs/minio/container/index.html
docker run -d -p 9000:9000 -p 9090:9090 -v ~/docker_data/minio/data:/data -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=123456789" --name minio quay.io/minio/minio server /data --console-address ":9090"

# jaeger
https://www.jaegertracing.io/docs/1.39/getting-started/

Update:

docker pull redis:latest
docker stop redis
docker rm redis

# Use previous docker run command
docker run ...

Fire in the hole

docker system prune --all --force --volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment