Project

General

Profile

Actions

Task #2922

closed

Story #2879: Crunch uses Docker images stored in Keep, and records Keep locators used for Jobs

Investigate interaction between Docker image metadata and docker export

Added by Brett Smith over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
05/28/2014
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

Are tags saved in the .tar somehow? Or is there some other clear way to save that metadata?

We could just put it in the same Keep collection in a separate fileā€¦

Actions #1

Updated by Brett Smith over 10 years ago

  • Subject changed from Investigate interaction between Docker tags and docker export to Investigate interaction between Docker image metadata and docker export
Actions #2

Updated by Brett Smith over 10 years ago

  • Status changed from New to Resolved
  • Remaining (hours) changed from 1.0 to 0.0

The tar files created by docker save look like this:

LAYER_HASH/VERSION  # I think this is an image format version.  We don't need it.
LAYER_HASH/json  # Includes build and configuration details about the image.
LAYER_HASH/layer.tar  # Filesystem contents for this layer
[repeated for every layer in the image]
repositories  # JSON that maps Docker repository+tag pairs to image hashes

In other words, all the metadata we're interested in can be read out of the repositories file.

Actions

Also available in: Atom PDF