Project

Profile

Help

Story #160

closed

As a user, I can upload and import an xz compressed docker image

Added by jgreguske about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Target Release - Docker:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Mail from Michael:

It looks like "docker save" only produces an uncompressed tar archive. "docker load" supports gzip, bz2, and xz, but I only know this because I looked at the source. It doesn't appear to be documented anywhere.

In any case, our primary goal is to enable a user to "docker save" and then "pulp upload", and that use case is covered. That said, we could add support for one or more of those compression algorithms as an RFE. Jay, you now know where to file RFEs. :)

In a related issue, I noticed that the docker daemon actually shells out [0] to the "xz" command to decompress xz!!! Presumably this is because golang's standard library doesn't currently support xz. Not that this should be your problem to worry about, but as long as you're choosing a compression algorithm, it's worth knowing that a slight crime is being committed under the hood for one of them.

[0] https://github.com/docker/docker/blob/v1.5.0/pkg/archive/archive.go#L91

Also available in: Atom PDF