sudo docker search mysql
sudo docker pull mysql:5.7
检索redis
sudo docker search redis
下载redis
sudo docker pull redis
启动redis
创建目录结构 mkdir -p /mydata/redis/conf touch /mydata/redis/conf/redis.conf docker run -p 6379:6379 --name redis \ -v /mydata/redis/data:/data \ -v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf \ -d redis redis-server /etc/redis/redis.confdocker run --name redis -p 6379:6379 -d --restart=always redis:3.2 redis-server --appendonly yes --requirepass "cnasir"
docker run --privileged=true -d --name zookeeper --publish 2181:2181 -d zookeeper:3.4.13