一、emqxmysql
#!/bin/bash docker stop emqttd-docker-v2.3.11 docker rm emqttd-docker-v2.3.11 docker run -tid --name emqttd-docker-v2.3.11 -p 1883:1883 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 -p 6000:6999 emqttd-docker-v2.3.11
二、mysqlredis
#!/bin/bash docker stop mysql docker rm mysql docker run -p 3306:3306 --name mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7
三、Oraclesql
#!/bin/bash docker run -d --name oracle -p 8080:8080 -p 1521:1521 -v $PWD/data:/mnt -e TZ=Asia/Shanghai sath89/oracle-12c
四、redisdocker
#!/bin/bash REDIS_DIR=/srv/redis docker stop redis docker rm redis docker run --detach \ --publish 6379:6379 \ --name redis \ --volume ${REDIS_DIR}/data:/data \ redis:latest redis-server --appendonly yes --notify-keyspace-events Ex --protected-mode no