说明:关于FileRun的安装方法已经说了2种了,分别用宝塔面板和手动编译的方式进行安装,参考:一款强大的多功能网盘和文件管理器:FileRun安装教程,如果只是临时用用的话,感觉就没必要花很长时间来安装了,这时候就可以使用Docker安装,不仅快,还省心,基本几分钟就可以安装完成,这里说下教程。
安装
1、安装Docker和Docker Compose
#安装Docker
curl -sSL https://get.docker.com/ | sh
#安装Docker Compose
curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
2、安装FileRun镜像
docker pull afian/filerun3、配置yml文件
建立docker-compose.yml文件,并使用默认的配置即可。
#以下是一整个命令,一起复制运行即可。
echo "version: '2'
services:
  db:
    image: mariadb:10.1
    environment:
      MYSQL_ROOT_PASSWORD: filerun
      MYSQL_USER: filerun
      MYSQL_PASSWORD: filerun
      MYSQL_DATABASE: filerun
    volumes:
      - /filerun/db:/var/lib/mysql
  web:
    depends_on:
      - db
    links:
      - db
    image: afian/filerun
    ports:
      - "80:80"
    volumes:
      - /filerun/html:/var/www/html
      - /filerun/user-files:/user-files" > /root/docker-compose.yml4、启动FileRun
docker-compose up -d这时候就可以通过http://IP访问了,用户名和密码都是superuser,第一次登录后会要你修改账号,密码等信息。![[教程]使用Docker快速安装FileRun多功能网盘 [教程]使用Docker快速安装FileRun多功能网盘](http://www.aiwanba.net/wp-content/uploads/2021/05/2021051211325784.png)
![[教程]使用Docker快速安装FileRun多功能网盘 [教程]使用Docker快速安装FileRun多功能网盘](http://www.aiwanba.net/wp-content/uploads/2021/05/2021051211325790.png)
![[教程]Cursor和VSCode无法写入用户设置 请打开用户设置并清除错误或警告,然后重试](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://www.aiwanba.net/wp-content/themes/Git-alpha/assets/img/pic/3.jpg&h=110&w=185&q=90&zc=1&ct=1)
![[教程]17 个全球最佳免费虚拟电话号码(手机、WhatsApp)](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://www.aiwanba.net/wp-content/themes/Git-alpha/assets/img/pic/9.jpg&h=110&w=185&q=90&zc=1&ct=1)
![[教程]安装.Net Framework 4.8 时出现未安装成功](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=/image/https://img-blog.csdnimg.cn/20210603091820696.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2d1eXVlbGluMTIz,size_16,color_FFFFFF,t_70#pic_center&h=110&w=185&q=90&zc=1&ct=1)
![[教程]Win7 安装.net Framework 4.8失败,提示:已处理证书链,但是在不受信任提供程序信任的根证书中终止。](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://lexsion.com/usr/uploads/2020/03/1453062917.jpg&h=110&w=185&q=90&zc=1&ct=1)