使用fastdfs自带的docker脚本构建的镜像
docker push funyule/fastdfs-nginx:1.0
docker run -d -e FASTDFS_IPADDR=<你的docker机器ip> -p 8888:8888 -p 22122:22122 -p 23000:23000 -p 8011:80 --name fastdfs funyule/fastdfs-nginx:1.0
ps: 我这里是本地有一个编译的非容器版本的fastdfs,使用他的自带的测试
[root@slave-10-2-1-128 fdfs]# /usr/bin/fdfs_test client.conf upload README.md
This is FastDFS client test program v6.08
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.fastken.com/
for more detail.
[2022-03-18 16:42:32] DEBUG - base_path=/root/fdfs, connect_timeout=5, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0
tracker_query_storage_store_list_without_group:
server 1. group_name=, ip_addr=172.17.0.1, port=23000
group_name=group1, ip_addr=172.17.0.1, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/rBEAAWI0RfiAZabTAAAH4ky5KB83135.md
source ip address: 172.17.0.1
file timestamp=2022-03-18 16:42:32
file size=2018
file crc32=1287202847
example file url: http://172.17.0.1/group1/M00/00/00/rBEAAWI0RfiAZabTAAAH4ky5KB83135.md
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/rBEAAWI0RfiAZabTAAAH4ky5KB83135_big.md
source ip address: 172.17.0.1
file timestamp=2022-03-18 16:42:32
file size=2018
file crc32=1287202847
example file url: http://172.17.0.1/group1/M00/00/00/rBEAAWI0RfiAZabTAAAH4ky5KB83135_big.md
[root@slave-10-2-1-128 fdfs]# /usr/bin/fdfs_test client.conf download group1 M00/00/00/rBEAAWI0RfiAZabTAAAH4ky5KB83135_big.md
This is FastDFS client test program v6.08
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.fastken.com/
for more detail.
[2022-03-18 16:45:41] DEBUG - base_path=/root/fdfs, connect_timeout=5, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0
storage=172.17.0.1:23000
download file success, file size=2018, file save to rBEAAWI0RfiAZabTAAAH4ky5KB83135_big.md
call pthread_attr_setstacksize fail
进入容器,修改/etc/fdfs/tracer.conf文件中,,默认是64KB,改大一点thread_stack_size=512KB
修改后重启
Content type
Image
Digest
Size
235 MB
Last updated
over 4 years ago
docker pull funyule/fastdfs-nginx:1.0