terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

`terra environment:remove` doesn't fully remove containers or volumes. #41

Closed jonpugh closed 9 years ago

jonpugh commented 9 years ago

Killing containers is not removing containers, or deleting volume files.

Let's provide users with the option to run docker rm when the terra environment:remove command is run.

According to the docker userguide, volumes will also not be deleted. Let's make sure to clean those up as well.

Data volumes are designed to persist data, independent of the container’s life cycle. Docker therefore never automatically delete volumes when you remove a container, nor will it “garbage collect” volumes that are no longer referenced by a container.