-
Notifications
You must be signed in to change notification settings - Fork 4
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
Shared services, like docker proxy, should not be destroyed by default when a destroy action is run #262
Comments
Noting here that this was done intentionally in #163 as the only to remove the proxy container was manually, see this comment on a related issue #70 (comment) I'd rather we look at detecting other running local server instances or containers using the proxy before removing it in a programmatic way if at all possible. I'd also suggest that perhaps as well as having the flag option we could add a second question prompt to ask whether you want to destroy the proxy container too, and then act accordingly. |
It's not just running, but also suspended servers, which I'd want to detect. I've gotten into trouble if the proxy got deleted while another server was suspended, in the past. Could we ask Docker for a list of containers, and only remove the Proxy if we don't detect another one in the format we expect like |
5.0.13 - [Backport v5.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #263 6.0.13 - [Backport v6.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #264 8.2.12 - [Backport v8.2-branch] Bump php from 8.2.12-fpm-bookworm to 8.2.13-fpm-bookworm by @hm-backport in #258 - [Backport v8.2-branch] Bump php from 8.2.13-fpm-bookworm to 8.2.14-fpm-bookworm by @hm-backport in #260 - Update Afterburner to 0.5.0 by @joehoyle in #262
5.0.13 - [Backport v5.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #263 6.0.13 - [Backport v6.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #264 8.2.12 - [Backport v8.2-branch] Bump php from 8.2.12-fpm-bookworm to 8.2.13-fpm-bookworm by @hm-backport in #258 - [Backport v8.2-branch] Bump php from 8.2.13-fpm-bookworm to 8.2.14-fpm-bookworm by @hm-backport in #260 - Update Afterburner to 0.5.0 by @joehoyle in #262
5.0.13 - [Backport v5.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #263 6.0.13 - [Backport v6.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #264 8.2.12 - [Backport v8.2-branch] Bump php from 8.2.12-fpm-bookworm to 8.2.13-fpm-bookworm by @hm-backport in #258 - [Backport v8.2-branch] Bump php from 8.2.13-fpm-bookworm to 8.2.14-fpm-bookworm by @hm-backport in #260 - Update Afterburner to 0.5.0 by @joehoyle in #262
5.0.13 - [Backport v5.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #263 6.0.13 - [Backport v6.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #264 8.2.12 - [Backport v8.2-branch] Bump php from 8.2.12-fpm-bookworm to 8.2.13-fpm-bookworm by @hm-backport in #258 - [Backport v8.2-branch] Bump php from 8.2.13-fpm-bookworm to 8.2.14-fpm-bookworm by @hm-backport in #260 - Update Afterburner to 0.5.0 by @joehoyle in #262
5.0.13 - [Backport v5.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #263 6.0.13 - [Backport v6.0-branch] Update Afterburner to 0.5.0 by @hm-backport in #264 8.2.12 - [Backport v8.2-branch] Bump php from 8.2.12-fpm-bookworm to 8.2.13-fpm-bookworm by @hm-backport in #258 - [Backport v8.2-branch] Bump php from 8.2.13-fpm-bookworm to 8.2.14-fpm-bookworm by @hm-backport in #260 - Update Afterburner to 0.5.0 by @joehoyle in #262
When
composer server destroy
is called,docker_proxy_1
is destroyed with the rest of the local server containers. However, if I have multiple environments on my local machine, that means that if I had another instance running, it will break.As a developer, I expect my different environments to be kept separate, therefore I wouldn't expect one (running) environment to be affected by a
composer server destroy
action called on another environment.Proposed tactics
docker_proxy
shared container--clean
destroy action, which removes all containers (including the proxy), e.g.composer server destroy --clean
The text was updated successfully, but these errors were encountered: