Camilo
Camilo

Reputation: 619

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

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

Upvotes: 0

Views: 1297

Answers (1)

Eranga Heshan
Eranga Heshan

Reputation: 5804

The format of your docker-compose.yml file is invalid. Try the following:

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

Upvotes: 1

Related Questions