How can I download a container image as a .tar file without Docker?

August 3, 2026 3 answers
Asked by !vise2jaw
My NAS is a walled-off system without SSH or terminal access, and it only lets me import local .tar container images. I need an image hosted in a GitHub container registry. Is there a way to download or generate a Docker-compatible .tar file from the image link without running Docker on the NAS itself?

Answers

_schedule adjustment
A registry image is made up of multiple layers and metadata, so downloading the visible link with a normal browser or basic `curl` usually will not produce a usable TAR by itself. A registry-aware tool such as Skopeo, Crane, or a temporary Docker installation is the safer option.
Reply to this answer
keeps forgetting commas
You do not necessarily need Docker. Tools such as Skopeo or Crane can copy an image from a registry directly into a Docker-compatible archive. For example, Skopeo can use a command like `skopeo copy docker://ghcr.io/owner/image:tag docker-archive:image.tar:image:tag`. Private images may also require registry credentials.
Reply to this answer
_2 emergency exits
The simplest approach is to use another computer that has network access and Docker. Pull the image there, export it with `docker save -o image.tar image-name:tag`, transfer the TAR file to the NAS, and import it with the NASโ€™s image-upload feature. This works well for isolated or air-gapped systems.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions