Skip to content
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

Cleanup Docker containers or container name cache #432

Closed
BradCrumb opened this issue Jun 1, 2018 · 1 comment
Closed

Cleanup Docker containers or container name cache #432

BradCrumb opened this issue Jun 1, 2018 · 1 comment

Comments

@BradCrumb
Copy link

I'am using the plugin for a couple of weeks now with Docker. I noticed that every time a new container will be started the old ones are still available but never been used again.

I think there are 2 options to optimize this:

Option 1: Add --rm to the docker run command. When a container has been used and exited it will be automatically removed and it will keep your list of containers clean.

Option 2: When a container has been initialized, keep the container name in cache and re-use the container the next time it needs to be started. Maybe this can be linked to the PHP project.

@Gert-dev
Copy link
Owner

Gert-dev commented Jun 1, 2018

Option 1 sounds like a quick-and-easy solution to this. I'll add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants