You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

  • PG12 docker pull postgres:12.14 docker run --name pg12 -e POSTGRES_PASSWORD=root@123 -e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -d postgres:12.14 localhost:5432 postgres:root@123
  • redis 免密
docker pull redis:latest
docker run --restart=always -p 6379:6379 --name redis7 -d redis:latest

localhost:6379

  • oracle localhost:1521 zr:root@123

  • neo4j docker 安装: 1.docker pull neo4j 2. docker run -d --name container_name -p 7474:7474 -p 7687:7687 --env NEO4J_AUTH=neo4j/root@12345 neo4j http://localhost:7474/ neo4j/clone-formula-shelf-hair-neptune-3446 修改密码::server change-password

  • sqlserver 2008 sa/root@123

  • kafka

docker pull zookeeper 
docker pull wurstmeister/kafka

docker volume create zookeeper_vol 
docker volume create kafka_vol
docker run -d --name kafka-test -p 9092:9092 \ --link zookeeper-test \ --env KAFKA_ZOOKEEPER_CONNECT=zookeeper-test:2181 \ --env KAFKA_ADVERTISED_HOST_NAME=localhost \ --env KAFKA_ADVERTISED_PORT=9092 \ --env KAFKA_LOG_DIRS=/kafka/logs \ -v kafka_vol:/kafka \ wurstmeister/kafka
docker run -d --name kafka-test -p 9092:9092 \ --link zookeeper-test \ --env KAFKA_ZOOKEEPER_CONNECT=zookeeper-test:2181 \ --env KAFKA_ADVERTISED_HOST_NAME=localhost \ --env KAFKA_ADVERTISED_PORT=9092 \ --env KAFKA_LOG_DIRS=/kafka/logs \ -v kafka_vol:/kafka \ wurstmeister/kafka
docker pull minio/minio
//在D盘创建minio文件夹并在里面再创建config文件夹  D:\minio\config
//创建容器 指定用户名密码为admin/admin123
docker run --name minio -p 9000:9000 -p 9999:9999 -d --restart=always -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=admin123" -v D:\minio\data:/data -v D:\minio\config:/root/.minio minio/minio server /data --console-address '0.0.0.0:9999'
  • mysql8 root/root@123
docker pull mysql
//创建存储
D:\mysql\data  D:\mysql\conf
//在conf下创建my.cnf文件
[client]
#socket = /d/mysql/mysqld.sock
default-character-set = utf8mb4
[mysqld]
#pid-file        = /var/run/mysqld/mysqld.pid
#socket          = /var/run/mysqld/mysqld.sock
#datadir         = /var/lib/mysql
#socket = /d/mysql/mysqld.sock
#pid-file = /d/mysql/mysqld.pid
datadir = /d/mysql/data
character_set_server = utf8mb4
collation_server = utf8mb4_bin
secure-file-priv= NULL
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Custom config should go here
!includedir /etc/mysql/conf.d/

//创建容器 指定密码为root@123
docker run --restart=unless-stopped -d --name mysql8 -v /d/mysql/conf/my.cnf:/etc/mysql/my.cnf -v  /d/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql
//带管理界面的MQ
docker pull rabbitmq:management
//指定用户名密码为admin admin123  15672是管理界面端口5672是服务端口
docker run --name=rabbitmq-server -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin123 -d rabbitmq:management
//查看日志 
docker logs rabbitmq-server