Skip to content

Validation before evaluate #7790

@lagden

Description

@lagden

System Info

OSX 10.15.6 (19G2021)
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.27.2, build 18f557f9

Installed via https://www.docker.com/products/docker-desktop

Problem

I always use .env file to setup docker-compose.yml
and now an error occurred specifically in this property: deploy.resources.reservations.cpus

The example is here:
https://github.com/lagden/compose-issue

See below what happens:

simple

Steps

  1. Run docker-compose up
  2. Problem: Error caused by deploy.resources.reservations.cpus validation
  3. Comment property deploy.resources.reservations.cpus in docker-compose.yml (line 15)
  4. Run again docker-compose up
  5. OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions