Skip to content

Remove orphans #3945

Answered by alexyaang
lukevandijk asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this could be done by command customization. You can read more about it here too.

Here's an example for using command customization to add the --remove-orphans flag:

In settings.json:

 "docker.commands.composeUp": [
        {
            "label": "override",
            "template": "${composeCommand} ${configurationFile} up ${detached} ${build} --remove-orphans",
        }
    ]

Let me know if this doesn't resolve your issue, then we can work something out 😁

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bwateratmsft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3922 on May 16, 2023 14:14.