creode / cdev-environment-docker

The Docker environment plugin for cdev
MIT License
0 stars 2 forks source link

Prune networks when cleaning up #3

Closed garethmidwood closed 5 years ago

garethmidwood commented 5 years ago

For each docker-compose environment booted up a network is created. When the number of networks = the number of available IP addresses then it's no longer possible to create a new one.

The simplest solution is to prune the networks as part of the cleanup when an environment is nuked. Here's the docker command to do it:

docker network prune

garethmidwood commented 5 years ago

This came from the issue on the main cdev repo - https://github.com/garethmidwood/cdev/issues/56

garethmidwood commented 5 years ago

Resolved in PR https://github.com/creode/cdev-environment-docker/pull/4