setAttribute(CONTAINER_ID, container.getNode().getId());
// If Weave is enabled, attach to the network
if (getConfig(DockerInfrastructure.WEAVE_ENABLED)) {
WeaveContainer weave = Entities.attributeSupplierWhenReady(dockerHost, WeaveContainer.WEAVE_CONTAINER).get();
InetAddress subnetAddress = weave.attachNetwork(getAttribute(CONTAINER_ID));
setAttribute(Attributes.SUBNET_ADDRESS, subnetAddress.getHostAddress());
}
// Create our wrapper location around the container
LocationSpec<DockerContainerLocation> spec = LocationSpec.create(DockerContainerLocation.class)