1. Docker相关的命令
镜像版本修改命令
镜像导出命令
镜像导入命令
Dockerfile编制
dockercompose.yaml文件修改
1. 源码目录结构

2. 运行后目录结构

3. 插件安装后所在位置


三、插件安装与迁移
1.插件安装
首先在联网的设备中安装插件,将需要的插件一次性装完。

2.更新插件镜像包
从运行的容器中更新镜像包,作用是将插件所用的依赖加入到镜像,避免使用下面命令后重新联网。
docker compose down
docker compose up -ddocker commit docker-plugin_daemon-1 langgenius/dify-plugin-daemon:0.0.6-local-24 docker compose down #删除原来的 langgenius/dify-plugin-daemon:0.0.6-local镜像 docker tag langgenius/dify-plugin-daemon:0.0.6-local-24 langgenius/dify-plugin-daemon:0.0.6-local docker compose up -d
3.导出镜像
docker save -o dify-plugin-24plugin.tar langgenius/dify-plugin-daemon:0.0.6-local......
4.打包用于启动Dify的源码目录
5.迁移至内网
- 导入镜像
docker load -i dify-plugin-24plugin.tar......
- 展开源码
- 启动服务
docker compose up -d