Don't send the full image list on the /images call, as Docker doesn't seem to be using it anyway
This commit is contained in:
parent
5d81d9d287
commit
c47c9d6cb4
1 changed files with 1 additions and 10 deletions
|
@ -294,17 +294,8 @@ def get_repository_images(namespace, repository):
|
||||||
if not repo:
|
if not repo:
|
||||||
abort(404, message='Unknown repository', issue='unknown-repo')
|
abort(404, message='Unknown repository', issue='unknown-repo')
|
||||||
|
|
||||||
all_images = []
|
|
||||||
logger.debug('Retrieving repository images')
|
|
||||||
for image in model.get_repository_images(namespace, repository):
|
|
||||||
new_image_view = {
|
|
||||||
'id': image.docker_image_id,
|
|
||||||
'checksum': image.storage.checksum,
|
|
||||||
}
|
|
||||||
all_images.append(new_image_view)
|
|
||||||
|
|
||||||
logger.debug('Building repository image response')
|
logger.debug('Building repository image response')
|
||||||
resp = make_response(json.dumps(all_images), 200)
|
resp = make_response(json.dumps([]), 200)
|
||||||
resp.mimetype = 'application/json'
|
resp.mimetype = 'application/json'
|
||||||
|
|
||||||
track_and_log('pull_repo', repo)
|
track_and_log('pull_repo', repo)
|
||||||
|
|
Reference in a new issue