hostFilesystem.copyImageToRootfs(container.imageId, rootfsPath);
for (VolumeType volumeType : new VolumeType[] { VolumeType.Ephemeral, VolumeType.Persistent }) {
File path = hostFilesystem.createVolume(volumeType, containerId);
Volume volume = new Volume();
volume.hostPath = path.getAbsolutePath();
volume.instancePath = "/volumes/" + volumeType.name().toLowerCase();
container.lxcConfig.volumes.add(volume);
}