标签:var host str local fst tar serve 镜像 net
# redis
## 下载镜像
> docker pull daocloud.io/daocloud/dao-redis:master-init
## 运行
> docker run -p 6379:6379 -d --name redis --restart=always redis
# zookeeper
## 下载镜像
> docker pull zookeeper:latest
## 启动zookeeper
> docker run -d --name zookeeper --publish 2181:2181 --volume /etc/localtime:/etc/localtime --restart=always zookeeper:latest
# RabbitMQ
## 找镜像 docker search rabbitmq
## 下载docker pull rabbitmq 或者 docker pull rabbitmq:management
## 启动
```
docker run -d --name rabbitmq -p 5672:5672 -p 25672:25672 rabbitmq:latest
docker run -d --name rabbitmq --publish 5671:5671 \
--publish 5672:5672 --publish 4369:4369 --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 \
rabbitmq:management
```
# fastdfs
```
docker pull luhuiguo/fastdfs
docker run -dti -p 22122:22122 --restart=always --name fastdfstracker -v /home/docker/data/fastdfs/tracker:/var/fdfs luhuiguo/fastdfs tracker
docker run -dti --restart=always --name storage0 -e TRACKER_SERVER=192.168.0.129:22122 -v /home/docker/data/fastdfs/storage0:/var/fdfs luhuiguo/fastdfs storage
docker run -dti --restart=always --network=host --name storage0 -e TRACKER_SERVER=192.168.0.129:22122 -v /home/docker/data/fastdfs/storage0:/var/fdfs luhuiguo/fastdfs storage
docker run -dti --network=host --name storage1 -e TRACKER_SERVER=10.1.5.85:22122 -e -v /var/fdfs/storage1:/var/fdfs luhuiguo/fastdfs storage
docker run -dti --network=host --name storage2 -e TRACKER_SERVER=10.1.5.85:22122 -e GROUP_NAME=group2 -e PORT=22222 -v /var/fdfs/storage2:/var/fdfs luhuiguo/fastdfs storage
```
# jenkins
```$
docker run -d -p 8090:8080 -p 50000:50000 -u root --restart=always -v /usr/local/jenkins:/var/jenkins_home jenkins/jenkins:lts
```
标签:var host str local fst tar serve 镜像 net
原文地址:https://www.cnblogs.com/bky-mc/p/9766880.html