Skip to content

Unsupported config option: 'pids_limit' #4792

@gcavalcante8808

Description

@gcavalcante8808

Hello Folks,

I'm trying to use the following docker-compose.yml:

version: '2.1'

volumes:
db-data:
app-tmp:

services:
  db:
    image: postgres:9.6
    restart: unless-stopped
    pids_limit: 150
    volumes:
     - "db-data:/var/lib/postgresql/data"
    env_file:
     - clair.env

When I try to run the containers, the following error is returned:

     Unsupported config option for services.db: 'pids_limit'

I'm using the documenation available at: https://docs.docker.com/compose/compose-file/compose-file-v2/#pidslimit and I have the following docker-compose version:

$ docker-compose --version
docker-compose version 1.12.0, build b31ff33

Can someone point me to the right way or syntax?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions