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

[BUG] init: false in override yml has no effect #9943

Closed
jamshid opened this issue Oct 24, 2022 · 2 comments
Closed

[BUG] init: false in override yml has no effect #9943

jamshid opened this issue Oct 24, 2022 · 2 comments

Comments

@jamshid
Copy link

jamshid commented Oct 24, 2022

Description

Using init: false in a docker-compose-override.yml file does not seem to have any effect.

Steps To Reproduce

% COMPOSE_FILE=docker-compose.yml:docker-compose-override.yml docker-compose up
...
foo-hello-world-1 exited with code 0

% docker inspect foo-hello-world-1 |grep Init                                  
            "Init": true.   # <=== why not false?

docker-compose.yml

services:
  hello-world:
     image: hello-world
     init: true

docker-compose-override.yml:

services:
  hello-world:
     init: false

Compose Version

Docker Compose version v2.12.0

Docker Environment

docker for Mac

Anything else?

No response

@harytfw
Copy link

harytfw commented Nov 7, 2022

maybe it is the bug of mergo used by compose-go
same problem: darccio/mergo#131

@laurazard
Copy link
Member

Closing this since compose-spec/compose-go#324 has been merged in the meantime and included in a release of compose-go that Compose is now using.

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

3 participants