@Override
public void deleteLocation() {
DockerContainerLocation location = getDynamicLocation();
if (location != null) {
LocationManager mgr = getManagementContext().getLocationManager();
if (mgr.isManaged(location)) {
mgr.unmanage(location);
}
}
setAttribute(DYNAMIC_LOCATION, null);
setAttribute(LOCATION_NAME, null);