Process docker api urls starting with /v2/ differently from non-docker api url whose path does not start with /v2/.