Docker Community Forums

Share and learn in the Docker community.

Docker-compose version 3 and docker-init


(Yoan Blanc) #1

As a long time user of tini, I was happy to see that --init can replace it. But, I am confused that it is only available in docker-compose 2.2 but not 3? Any reason for this?

cheers,


(Bdharrington7) #2

I noticed this as well; it was introduced in the schema v.2.2, and no mention of it being removed, yet when running a v3.x config file, an error occurs: Unsupported config option for <service.id>: ‘init’

EDIT: I found the reason why here: https://github.com/docker/docker.github.io/issues/3149


(Batjko) #3

The issue mentioned by @bdharrington7 was closed as they think it’s only not working for swarm deployments.
But I am getting the “Unsupported config option” error even if I only use docker-compose up to deploy the containers locally.

Any news on what’s going on with this?


(Yakobe) #4

I’m also hitting this problem. Any news?


(Bdharrington7) #5

Take a look at the issue I linked to, it looks like there’s an option to enable it by default, though it seems like the sentiment is that programs should properly handle their children anyway. As of about 3 months ago there’s still some movement on it