docker / docker/cli

[FEATURE REQUEST] docker export to tar.gz

Open
#6,916 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/0-triage
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Description

Currently docker export command allows to export a container as .tar.

I use docker mainly for creating WSL images (Linux distros) for Microsoft Store and the process needs to work with a .tar.gz archive that is converted in an Appx package.

Windows has not gzip included by default but only tar command.

To prevent the usage of gzip, there is no way to use only tar command to convert to gzip. It is not possible to first unarchive the tar archive and then compress them to tar.gz by tar command because the containers, if Linux based, have errors due to the structure of a Linux filesystem (that is inside the container).

To prevent this and also to separately install gzip, can you please implement a possibility to also export a container as .tar.gz? It can also allow us to export containers in a compressed and less space-consuming archive.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker export command and trace how it currently produces a .tar archive. Determine where an optional .tar.gz output can be added, then verify that exporting a container produces a valid compressed archive without requiring a separate gzip command.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.