-------------mongo--------------------
docker run -itd --name mongo -p 27017:27017 mongo --auth --ipv6
docker exec -it mongo mongo admin
--------------php---------------------
docker exec -it php-fpm bash
docker run --name php-fpm -v ~/nginx/www:/www -d php:7.2-fpm
docker exec -it 24dda58c364d sh -c "php /www/test.php"
--------------redis------------------
docker run -itd --name redis -p 6379:6379 redis
docker exec -it redis /bin/bash
-------------相关命令--------------------
docker network inspect bridge 查看网段等信息
docker network ls
docker network rm NAME/ID
docker network create --subnet=192.168.1.0/24 redis-network
docker-compose -p compose-test up -d --force-recreate
docker tag ID name:tag
docker-php-ext-install sockets
docker run --privileged -itd -v /usr/docker/test/cluster/master-4/:/usr/src/redis --name cluster-7 -p 7004:6379 -p 17004:16379 --env REALIP=120.78.64.28 --env PORT=7004 --env PORT2=17004 redis-cluster sh -c "/usr/src/sh/cluster.sh"
---------------参数解释----------
--privileged