Docker MYSQL 和 Redis 启动脚本 2018-10-16 技术 Contents redis 1 docker run -p 6379:6379 -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf -v $PWD:/data -v $PWD:/var --name redis_6379 -d redis redis-server /usr/local/etc/redis/redis.conf mysql 1 docker run --name mysql_3306 -v $PWD:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql Author ai0376 LastMod 2018-10-16 Reward wechat