code: private String trimLeadingSlashIfNeeded(String rawName) {
          if (rawName != null && rawName.startsWith("/")) {
              return rawName.substring(1);
          }
          return rawName;
      }
docs: /*
  Docker inspect returns full container name = hostname/container_name, for localhost = /container_name.
  So far as we only work with localhost we can safely trim leading slash.