Skip to content

read COMPOSE_REMOVE_ORPHANS from .env#11714

Merged
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:remove_orphans
Apr 11, 2024
Merged

read COMPOSE_REMOVE_ORPHANS from .env#11714
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:remove_orphans

Conversation

@ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Apr 11, 2024

What I did

read COMPOSE_REMOVE_ORPHANS from project environment (after os.env and .env file has been loaded)
and assign --remove-orphans accordingly until user has explictely set the flag

Related issue
closes #11707

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from a team, glours, jhrotko and milas and removed request for a team April 11, 2024 07:23
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit b032999 into docker:main Apr 11, 2024
@ndeloof ndeloof deleted the remove_orphans branch April 11, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] COMPOSE_REMOVE_ORPHANS only works as a shell variable, not in environment files

2 participants