-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Improve the instructional copy for the removal of orphan containers #1464
Comments
Thanks for this @rpkoller, I can confirm that this suggestion isn't accepted by the
|
The way to remove orphans is |
@rfay yep thanks! the |
I think this should be reopen. I can across this today after removing a ddev addon. $ ddev start
Starting d9-demo...
time="2022-11-02T16:28:35+09:00" level=warning msg="Found orphan containers ([ddev-d9-demo-chromedriver]) 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."
... This message suggests "... running the command with the --remove-orphans" but does not specify what command to run.
#1743 adds a new command to run, but is not mentioned when the error is produced, a new user might not even know it exists. The error should be updated to be more explict: |
The actual command to fix it these days would be The odd thing about the orphans output as you know is that it's coming from docker-compose, and without putting some code in to trap that specific message there's no way to control it. We wouldn't want people doing |
What I did was to find the container with Docker command:
|
Normally you'd just do a However, if there are other containers, or misconfigured containers, you can get all of them with |
Describe the bug
I had a demo site running. By accident the project files including the
.ddev
directory got deleted by accident. I've recreated the config file byddev config
utilizing the same project name. The containers for the projectddevdemo
are still present:before the deletion
webcache_enabled
was set totrue
. after recreation the value wasfalse
by default again. I forgot about that and just hitddev start
.Expected behavior
Based on the context of the command I would have expected that the removal of orphans could be accomplished by
ddev start --remove-orphans
as the instructional copy impliesFound orphan containers (ddev-ddevdemo-bgsync) 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.
ButError: unknown flag: --remove-orphans
is returned only.Version and configuration information (please complete the following information):
docker version
) and insert it here.ddev version
)The text was updated successfully, but these errors were encountered: