【Linux】docker安装FastDFS

安装docker

参考:https://www.cnblogs.com/jxd283465/p/11542127.html

下载FastDFS

# yum install -y git #下载git
# mkdir /data
# cd /data
# git clone https://github.com/happyfish100/fastdfs.git #克隆fastdfs仓库到本地
Cloning into 'fastdfs'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1107 (delta 1), reused 1 (delta 0), pack-reused 1101
Receiving objects: 100% (1107/1107), 6.34 MiB | 26.00 KiB/s, done.
Resolving deltas: 100% (736/736), done. #克隆完毕

构建镜像

# cd /data/fastdfs/docker/dockerfile_network
# docker build -t fastdfs:latest . #构建镜像
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE fastdfs latest c1c4e7f3a646 5 hours ago 493MB # mkdir -p /data/fastdfs/tracker_data # mkdir -p /data/fastdfs/storage_data # mkdir -p /etc/fdfs # cp /data/fastdfs/fastdfs/docker/dockerfile_network/conf/* /etc/fdfs/

使用docker镜像构建tracker容器(跟踪服务器,起到调度的作用)

 以后再写吧 

posted @ 2021-01-15 10:08    阅读(151)  评论(0编辑  收藏  举报