destroys all ephemeral containers on a garden server
by paperghost
Shutting a Concourse worker down requires the containers to be destroyed before removing the old versions of the RootFSs so that the files are not in use when BOSH tries to remove them. The only containers that are likely to last long enough to be in this state (over two BOSH deploys) are check containers.
Luckily, check containers can be destroyed at any time and spun up again on another machine to resume. In Concourse this concept is referred to as ephemeral. When Concourse creates an ephemeral container it is marked with a Garden property. Jettison finds containers with this property and destroys them.
To destroy all ephemeral containers on a Garden server, just run:
$ jettison -gardenAddr 10.0.0.100:7777