Closed
Description
As part of #230 @kzys noticed that if a container is deleted, the stub drive for it cannot be re-used. This results in situations like the following:
- Call CreateVM with ContainerCount set to 2
- Start container A
- Start container B, let it exit and then Delete it.
- Try to start container C, it will fail due to being out of stub drives
In theory, once container B is deleted, the stub drive is no longer needed and should be able to be used by container C. The implementation would need an update to allow this. To be clear, this is just re-use of stub-drives within the context of a single VM (not across different VMs, which creates a bunch of other concurrency related issues).