You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using run on an updated Compose, I’ve been greeted by a
WARN[0000] Found orphan containers […] for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
The thing is, I didn’t remove or rename the corresponding service, so I don’t know how to reproduce.
Adding the --remove-orphans flag on run didn’t change anything, but it did work with up.
Steps To Reproduce
No response
Compose Version
$ docker compose versionDocker Compose version v2.29.0
I came across this myself just in the last week or so. I have seen quite a few docker and compose updates coming out over the last week or two so I wonder if this is a config issue which has always existed but not surfaced or if it's an errant error that has been introduced.
Just an update on this. --remove-orphans doesn't do anything when used with the run command as @MatTheCat says, however, if you add the --rm flag to the run command instead this does prevent the issue of the build-up of orphaned containers.
Description
After using
run
on an updated Compose, I’ve been greeted by aThe thing is, I didn’t remove or rename the corresponding service, so I don’t know how to reproduce.
Adding the
--remove-orphans
flag onrun
didn’t change anything, but it did work withup
.Steps To Reproduce
No response
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: