deepseek 导出导入模型(docker)

前言

实现导出导入deepseek 模型。deepseek 安装docker下参考

docker 导出模型

  • 实际生产环境建议使用docker-compose.yml进行布局,然后持久化ollama模型数据到本地参考

    echo "start ollama"
    docker start ollama

    #压缩容器内文件夹,然后拷贝压缩文件到本地/opt下
    echo "Compress the folder inside the container"
    docker exec -it ollama bash -c 'tar -zcf /models.tar.gz -C /data .'
    docker cp ollama:/models.tar.gz /opt

docker 导入模型

复制代码
echo "start ollama"
docker start ollama

#拷贝压缩文件到容器,然后解压文件,然后在删除压缩包
echo "UnZip File"
docker cp /opt/models.tar.gz ollama:/
docker exec -it ollama tar -zxf /models.tar.gz -C /data
docker exec -it ollama rm -rf  /models.tar.gz

echo "restart ollama"
docker restart ollama
相关推荐
张忠琳1 天前
【deepseek-harness】DeepSeek Harness (dsh) 系统级架构分析之二
ai·agent·deepseek·harness
开始学AI1 天前
Codex2API Docker 使用宿主机代理:OAuth Token 兑换 403 问题排查与解决方案
运维·docker·容器
故作春风1 天前
钱包顶不住了:从 FRP 内网穿透本地 Ollama 到 DeepSeek Harness 多模型实战全记录
agent·deepseek
华尔街的幻觉AI1 天前
全网都在推 DeepSeek Harness 插件,skill 还有必要装吗?
deepseek
做前端的娜娜子1 天前
Docker 常用命令全梳理:从镜像拉取到容器编排
docker·容器·掘金·金石计划
牧艺1 天前
DeepSeek Harness 上手:一切皆插件的 Agent 运行时,核心流程怎么走
llm·agent·deepseek
Justin3go1 天前
DeepSeek Harness 对比 Claude Code:架构、插件、MCP
ai编程·claude·deepseek
我的AI队友1 天前
DeepSeek Harness 接钉钉通知,踩了两个坑:签名不匹配 + 纯对话刷屏
后端·deepseek
AI英德西牛仔1 天前
Claude导出word指令的PC端最优解:AI导出鸭电脑版底层逻辑全拆解
人工智能·word·excel·deepseek·ai导出鸭
郝开1 天前
Docker Compose 本地环境搭建:kkFileView
运维·docker·容器