当前位置: 首页 > news >正文

(root) Additional property include:is not allowed

 

 参考:执行docker compose命令出现 Additional property include is not allowed_(root) additional property include is not allowed-CSDN博客

原因是docker-compose的版本太低,下载最新的替换即可。

第一次2.6.x版本改成了2.19.x不够高,所以又报了下面的错误。

下载地址:v2.32.4后解决。

Releases · docker/compose · GitHub

现在最新的版本:

root@node15:~# chmod +x docker-compose-linux-x86_64 
root@node15:~# docker info|more
Client:
 Version:    26.1.3
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  v2.19.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 62
  Running: 4
  Paused: 0
  Stopped: 58
 Images: 35
 Server Version: 26.1.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: nvidia-legacy runc io.containerd.runc.v2 nvidia nvidia-cdi
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 7c3aca7a610df76212171d200ca3811ff6096eb8
 runc version: 5bc031544833253e3ab6a36daec376dc13a4f479
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.0-43-generic
 Operating System: Ubuntu 22.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 56
 Total Memory: 251.8GiB
 Name: node15
 ID: 3ca08087-6f51-4eef-aee0-54a158dd6169
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  192.168.207.41
  127.0.0.0/8
 Live Restore Enabled: false

root@node15:~# cp docker-compose-linux-x86_64 /usr/libexec/docker/cli-plugins/docker-compose
root@node15:~# docker info|head
Client:
 Version:    26.1.3
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  v2.32.4
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
root@node15:~# 

 root@node15:/disk2/ragflow-0.16.0# export https_proxy=http://192.168.207.127:7890

上面的设置没有效果,主要需要修改容器地址,升级docker-compose版本后可以执行
root@node15:/disk2/ragflow-0.16.0# docker compose -f docker/docker-compose.yml up -d
WARN[0000] The "HF_ENDPOINT" variable is not set. Defaulting to a blank string. 
WARN[0000] The "MACOS" variable is not set. Defaulting to a blank string. 
[+] Running 4/22
 ✘ redis Error        Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)                    15.0s 
 ⠙ minio [⠀⣿⠀⠀⠀⠀⠀] Pulling                                                                                                                                                                15.0s 
   ⠦ f72461870632 Downloading [=====>                                             ]  767.8kB/7.193MB                                                                                      12.5s 
   ✔ 683391db8929 Download complete                                                                                                                                                        2.9s 
   ⠦ ba8b8055313f Downloading [=>                                                 ]  1.086MB/35.51MB                                                                                      12.5s 
   ⠦ a8e0787fb7ed Downloading [=>                                                 ]  322.5kB/9.776MB                                                                                      12.5s 
   ⠦ fd20cadb8d39 Waiting                                                                                                                                                                 12.5s 
   ⠦ 3738ac54d510 Waiting                                                                                                                                                                 12.5s 
   ⠦ 128c59a31db4 Waiting                                                                                                                                                                 12.5s 
 ✘ ragflow Error      context canceled                                                                                                                                                    15.0s 
 ✘ mysql Error        context canceled                                                                                                                                                    15.0s 
 ⠙ es01 [⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀] Pulling                                                                                                                                                              15.0s 
   ⠹ 9e61d8b90935 Waiting                                                                                                                                                                 12.2s 
   ⠹ b72403a59eb9 Waiting                                                                                                                                                                 12.2s 
   ⠹ 9fe4457bccf6 Waiting                                                                                                                                                                 12.2s 
   ⠹ 89732bc75041 Waiting                                                                                                                                                                 12.2s 
   ⠹ 7d1b8a7d0cf6 Waiting                                                                                                                                                                 12.2s 
   ⠹ 5f0c732baa5d Waiting                                                                                                                                                                 12.2s 
   ⠹ df9f9c79894f Waiting                                                                                                                                                                 12.2s 
   ⠹ 4cfe26a355c8 Waiting                                                                                                                                                                 12.2s 
   ⠹ 4d9c5e900237 Waiting                                                                                                                                                                 12.2s 
   ⠹ bc9c1e3bbcf8 Waiting                                                                                                                                                                 12.2s 
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
root@node15:/disk2/ragflow-0.16.0# 

root@node15:/disk2/ragflow-0.16.0# cat /etc/docker/daemon.json
{
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    },
     "registry-mirrors": [
         "https://mirrors.tuna.tsinghua.edu.cn",
         "https://ustc-edu-cn.mirror.aliyuncs.com",      
         "https://ccr.ccs.tencentyun.com",
         "https://docker.m.daocloud.io",
         "https://docker.awsl9527.cn",
         "https://registry.docker-cn.com",
         "https://docker.m.daocloud.io",
         "https://dockerproxy.com",
         "https://docker.mirrors.ustc.edu.cn",
         "https://docker.nju.edu.cn",
         "https://iju9kaj2.mirror.aliyuncs.com",
         "http://hub-mirror.c.163.com",
         "https://cr.console.aliyun.com",
         "https://hub.docker.com",
         "http://mirrors.ustc.edu.cn"

     ]

}

root@node15:/disk2/ragflow-0.16.0# systemctl daemon-reload
root@node15:/disk2/ragflow-0.16.0# systemctl restart docker

 修改     "registry-mirrors": 后可以正常拉镜像了。

http://www.lryc.cn/news/533292.html

相关文章:

  • react 18父子组件通信
  • FastReport 加载Load(Stream) 模板内包含换行符不能展示
  • Maven 中常用的 scope 类型及其解析
  • vue3:点击子组件进行父子通信
  • Composo:企业级AI应用的质量守门员
  • Jackson扁平化处理对象
  • Java即时编译器(JIT)的原理及在美团的实践经验
  • 使用 Ollama 在 Windows 环境部署 DeepSeek 大模型实战指南
  • 算法基础之八大排序
  • 使用TensorFlow和Keras构建卷积神经网络:图像分类实战指南
  • 音频进阶学习十一——离散傅里叶级数DFS
  • 20.<Spring图书管理系统①(登录+添加图书)>
  • 关于图像锐化的一份介绍
  • Django开发入门 – 0.Django基本介绍
  • 多智能体协作架构模式:驱动传统公司向AI智能公司转型
  • CentOS服务器部署Docker+Jenkins持续集成环境
  • 【prompt实战】AI +OCR技术结合ChatGPT能力项目实践(BOL提单识别提取专家)
  • 【Android】Android开发应用如何开启任务栏消息通知
  • 上传文件报错:the request was rejected because no multipart boundary was found
  • 大模型—Dify本地化部署实战
  • 功能架构元模型
  • 常用工具类——Collections集合框架
  • e2studio开发RA2E1(9)----定时器GPT配置输入捕获
  • 25/2/7 <机器人基础>雅可比矩阵计算 雅可比伪逆
  • 网络爬虫js逆向之异步栈跟栈案例
  • 使用Ollama本地部署deepseek
  • Rust错误处理:从灭火器到核按钮的生存指南
  • Golang:Go 1.23 版本新特性介绍
  • 电脑运行黑屏是什么原因?原因及解决方法
  • redis之AOF持久化过程