Docker Community Forums

Share and learn in the Docker community.

Unable to use oom-kill-disable configuration


(Jcald1) #1

I have the following docker compose file. When I run “docker-compose up”, I get > ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

Unsupported config option for services.server: ‘oom-kill-disable’

I thought this feature was added in https://github.com/docker/compose/commit/80503da4763982fe1595f72a40032bacf59970b2

I also tried using oom-kill-disable

version: “3”
services:
server:
build: .
ports:
- “5000:5000”
# - “5432:5432”
volumes:
- “.:/code”
environment:
- PORT=5000
network_mode: host
oom_kill_disable: true
deploy:
resources:
limits:
memory: 8G


(Joffrey F) #2

I don’t think that option is available for the v3 format. You’ll have to use a v2 file if you want to take advantage of it.