简体   繁体   English

Compose 文件“./docker-compose.yml”无效,因为:services.docker-image 的配置选项不受支持:“update_config”

[英]The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services.docker-image: 'update_config'

I'm trying to create some replicas with docker-compose but i keep getting the same error我正在尝试使用 docker-compose 创建一些副本,但我一直收到相同的错误

ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services.docker-image: 'update_config'

version: "3"
services:
  docker-image:
    build: .
    replicas: 5
    update_config:
      parallelism: 1
      delay: 10s
    restart_policy:
      condition: on-failure

The format of your docker-compose.yml file is invalid.您的docker-compose.yml文件的格式无效。 Try the following:尝试以下操作:

version: "3"
services:
  docker-image:
    build: .
    deploy:
      replicas: 5
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:撰写文件“./docker-compose.yml”无效,因为:服务不支持的配置选项:“sqlite3” - ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'sqlite3' 错误:撰写文件“.\docker-compose.yml”无效,因为:服务的配置选项不受支持。drupal:“postgres” - ERROR: The Compose file '.\docker-compose.yml' is invalid because: Unsupported config option for services.drupal: 'postgres' 获取错误为 ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'db' while compose - Getting the error as ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'db' while composing Compose 文件 './docker-compose.yml' 无效,因为:不支持的配置选项 - The Compose file './docker-compose.yml' is invalid because: Unsupported config option 错误:撰写文件“./docker-compose.yml”服务的配置选项不受支持。web:“dockerfile” - ERROR: The Compose file './docker-compose.yml' Unsupported config option for services.web: 'dockerfile' 如何修复我的 docker-compose.yml? - services.teslamate 不支持的配置选项:“数据库” - How do I fix my docker-compose.yml? - Unsupported config option for services.teslamate: 'database' docker-compose:撰写文件“...”无效,因为:不支持的配置选项 - docker-compose: Compose file "..." is invalid because: unsupported config options 错误:撰写文件“./docker-compose.yaml”无效,因为:services.nvidia-smi-test 的配置选项不受支持:“运行时” - ERROR: The Compose file './docker-compose.yaml' is invalid because: Unsupported config option for services.nvidia-smi-test: 'runtime' 错误:撰写文件“./docker-compose.yml”无效,因为:services.jenkins.networks 包含无效类型 - ERROR: The Compose file './docker-compose.yml' is invalid because: services.jenkins.networks contains an invalid type 错误:撰写文件“./docker-compose.yml”无效,因为:services.mysql.ports 无效 - ERROR: The Compose file './docker-compose.yml' is invalid because: services.mysql.ports is invalid
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM