Dify-01-docker安装 和 dify部署

1、docker安装基于WSL

1、1启动虚拟机管理程序

中文的

1、2 wsl的安装、更新

bash 复制代码
wsl --install 或者 wsl --update

出错1、注册表问题

注册表问题

出错2、wsl安装错误

wsl 安装错误

1、3进入docker 修改镜像

复制代码
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "features": {
    "buildkit": true
  },
  "registry-mirrors": [
    "https://your-mirror-address.mirror.aliyuncs.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://hub-mirror.c.163.com",
    "https://reg-mirror.qiniu.com",
    "https://docker.1ms.run",
    "https://dockerproxy.com",
    "https://hub.rat.dev"
  ]
}

1、4测试docker

复制代码
docker pull hello-world

2、部署并运行dify

我的dify位置

复制代码
E:\dify\dify\docker

进入docker文件下

输入cmd

然后输入

复制代码
docker compose up -d

如果终止则一直重复输入即可

然后进入

复制代码
http://localhost/signin

设置好邮箱用户名

由于课件所以直接用配置好的账号密码

复制代码
C:\Users\123>docker exec -it docker-api-1 flask reset-password
2026-05-14 11:22:46.367 INFO [MainThread] [utils.py:164]  - NumExpr defaulting to 8 threads.
Warning! You didn't set docs_url, redoc_url or openapi_url.
API Documentation will be skipped.
Email: 934942965@qq.com
New password: 1234567gao
Password confirm: 1234567gao
Password reset successfully.
相关推荐
H Journey1 小时前
Linux查看进程命令
linux·运维·进程
月光技术杂谈1 小时前
深度解析:基于Docker跨架构构建RK3588嵌入式rootfs的原理、边界与最佳实践
docker·容器·rootfs·rk3588·openeuler·欧拉·文件系统构建
风曦Kisaki1 小时前
# Linux运维Day01:Nginx基础
linux·运维·nginx
容器魔方1 小时前
Kthena 核心原语:ModelServing CRD 如何定义分布式推理“新标准”?
大数据·分布式·云原生·容器·云计算
头发够用的程序员1 小时前
WSL2 Ubuntu 24.04 离线安装 Docker 全流程
linux·ubuntu·docker
xingfujie1 小时前
第1章:整体架构与准备工作
linux·云原生·容器·架构·kubernetes·kubelet
jsons11 小时前
linux 用户内存保障管理配置
linux·运维·服务器
七爷不在我这里1 小时前
dockerB站笔记
笔记·docker
IT大白鼠1 小时前
Ansible vs 运维智能体:自动化工具的优劣对比与适用场景分析
运维·自动化·ansible