Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported config option: 'pids_limit' #4792

Closed
gcavalcante8808 opened this issue May 4, 2017 · 8 comments
Closed

Unsupported config option: 'pids_limit' #4792

gcavalcante8808 opened this issue May 4, 2017 · 8 comments

Comments

@gcavalcante8808
Copy link

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.

@shin-
Copy link

shin- commented May 4, 2017

What command are you running? I just tested docker-compose up with the config you shared and it works for me without issues...

@gcavalcante8808
Copy link
Author

Hello @shin- i'm using the following command:

docker-compose up -d

@shin-
Copy link

shin- commented May 4, 2017

Yeah, that should work just fine. Maybe try upgrading to the latest version? https://github.com/docker/compose/releases/tag/1.13.0

@salzig
Copy link

salzig commented May 22, 2017

Same error with docker-compose version 1.13.0, build 1719ceb on Docker 17.05.0-ce and docker-compose file in spec version 3.2.

$ cat docker-compose.yml 
version: "3.2"

services: 
  app:
    image: "ubuntu"
    pids_limit: 2

$ docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.app: 'pids_limit'

@shin-
Copy link

shin- commented May 22, 2017

That's different - pids_limit is not valid in format v3. See the reference docs: https://docs.docker.com/compose/compose-file/

@salzig
Copy link

salzig commented May 22, 2017

couldn't find any deprecation message. Can you hint me something?

@shin-
Copy link

shin- commented May 24, 2017

Swarm Mode services do not support pids_limit, so the option has only been introduced to the 2.1 (and subsequently 2.2) format. You're right that this is not properly mentioned in the docs. I created docker/docs#3366 to remedy this.

@hazcod
Copy link

hazcod commented Mar 25, 2019

@shin- any idea why this isn't supported anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants