Remove orphans #3945
-
Type: Feature Request When i change my docker compose to remove a service I no longer need I have ton manually delete this service in Docker Dashboard. Could you add the --remove-orphans flag to the execution. I believe this would classify as expected behaviour, when having removed a service from the compose spec. Extension version: 1.25.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 In "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 😁 |
Beta Was this translation helpful? Give feedback.
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
:Let me know if this doesn't resolve your issue, then we can work something out 😁