.configure(flags)
.configure(DynamicLocation.OWNER, this)
.configure("machine", container) // the underlying JcloudsLocation
.configure(container.getAllConfig(true))
.displayName(getDockerContainerName());
DockerContainerLocation location = getManagementContext().getLocationManager().createLocation(spec);
setAttribute(DYNAMIC_LOCATION, location);
setAttribute(LOCATION_NAME, location.getId());
LOG.info("New Docker container location {} created", location);
return location;
} catch (NoMachinesAvailableException e) {
throw Exceptions.propagate(e);