#1.进入storage容器 docker exec -it c29105366570 bash #2.修改storage内部http.server_port在最后一行 vi /etc/fdfs/storage.conf # the port of the web server on this storage server http.server_port=8888 #3.修改Nginx端口与上面保持一致 vi /usr/local/nginx/conf/nginx.conf server { listen 8888; .....}; #4.重启容器 docker restart c29105366570