DockerSelf-Hosting

Skopeo: Copy, Inspect and Mirror Container Images Between Registries Without a Daemon (Linux, Windows, Mac)

Before you start

  • 19 min read

Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#

Skopeo is a free, open-source command line tool that looks inside container images and copies them straight from one place to another (a registry, a folder, a file), with no Docker engine and usually no root rights.

Skopeo official logo

Logo: the official Skopeo project (github.com/podman-container-tools/skopeo, file docs/skopeo.svg, Apache-2.0 repository licence, trademarks reserved)

Use it to check a tag before you pull it, to mirror the few images your homelab depends on into your own registry (our Docker Registry or Harbor guides), and to carry images on a USB stick to a machine with no internet. It runs once and exits: nothing stays running.

WhatValue (official sources, read 3 December 2026)
Current versionSkopeo v1.25.2, released 16 November 2026
Container imagequay.io/skopeo/stable:v1.25.1-immutable (no v1.25.2 image tag existed on 3 December 2026)
Time neededAbout 30 minutes (our estimate)
RAM and diskNot measured. Layers stream through the program; oci: and dir: targets need disk
PortsNone. Skopeo is a client
LicenceApache-2.0
Official docsThe README and man pages in the repository. There is no project website

At a glance:

  • Commands: inspect, copy, sync, list-tags, delete, login, logout.
  • Needs: nothing running in the background. Only the docker-daemon: transport needs a Docker engine.
  • Not: a builder, a container runner, a vulnerability scanner (see Trivy and Grype and Syft) or a full registry backup.
  • New home: on 10 August 2026 the Podman project moved Podman, Buildah and Skopeo into a CNCF-owned GitHub organisation. The old github.com/containers/skopeo address redirects (we saw HTTP 301).
  • Look-alike site: the README says there is no separate website. Issue 2978 reports an unaffiliated skopeo.org posing as the home page.

How it fits together#

Skopeo reads an image from its source, writes it to its destination and keeps your logins in a small file, auth.json. Nothing goes through a local image store.

Skopeo flow: a source registry such as Docker Hub or quay.io sends the manifest and layers to the skopeo command on your computer, which reads logins from auth.json and then either pushes the same image to your own registry (Distribution or Harbor) or saves it as files in an oci or dir folder

Drawn for this guide from the official README and man pages.

Four words: a manifest lists an image's layers. An index is a manifest that points to one image per platform (linux/amd64, linux/arm64 ...), so one tag can hide many images. A digest is the sha256: fingerprint of a manifest; a tag can move, a digest cannot. A transport is the first part of an address and says what kind of place it is:

TransportExampleMeaning
docker://docker://docker.io/library/alpine:3.24.4A registry. It does not mean "ask the Docker engine"
oci:oci:alpine-oci:3.24.4A folder in OCI image layout, plus a tag
oci-archive:oci-archive:alpine.tar:3.24.4The same, packed in one tar file
dir:dir:alpine-dirSkopeo's plain folder. The docs call it non-standard, good for debugging
docker-archive:docker-archive:a.tar:alpine:3.24.4A docker save file
docker-daemon:docker-daemon:myapp:1.0Images inside a running Docker engine
containers-storage:containers-storage:localhost/myapp:1.0The local store of Podman and Buildah

Before you start#

Note: every domain, user name, password and token on this page is a dummy example (registry.example.com, dummy-user, change-me). Replace them with your own. alpine:3.24.4 is a real public image used as a harmless test.

SystemWhat to have
LinuxA distribution with a skopeo package. No Docker needed
WindowsWindows 10 or 11 with WSL 2 (Ubuntu), or Docker Desktop for the container image. Skopeo has no Windows package (official install guide)
MacHomebrew, Intel or Apple Silicon

Checklist:

  • [ ] You know the images you want and their exact tags
  • [ ] Your own registry runs with HTTPS (Docker Registry or Harbor), or you only want to inspect and save files
  • [ ] A user or robot account for it with the least rights needed
  • [ ] A password manager for the tokens

Tested by DIY Lab Hub: not yet. Commands come from the official README and man pages at tag v1.25.2, read on 3 December 2026. We ran nothing on a real machine, so output is described from the docs, not shown.

Tip: Install only from your distribution, Homebrew or the GitHub repository, never from a site that merely ranks high in a search.

Step 1: Install Skopeo and create a working folder#

Distribution packages can be old. On 3 December 2026 sources.debian.org listed skopeo 1.9.3 for Debian 12 and 1.18.0 for Debian 13, while Homebrew had 1.25.2. Newer options such as --strip-removed-platforms (v1.24.0) need a newer build.

Linux#

Run in terminalbash
sudo apt-get update && sudo apt-get install -y skopeo
# Fedora, RHEL, CentOS Stream: sudo dnf -y install skopeo
skopeo --version
mkdir -p ~/docker_volumes/skopeo/{data,config,logs,backups}

If your package is too old, run the pinned container image instead (needs Docker or Podman; its entry point is skopeo):

Run in terminalbash
docker run --rm quay.io/skopeo/stable:v1.25.1-immutable --version

-immutable tags are never overwritten; the plain v1.25.1 tag is rebuilt daily with security updates (image build README). We pin the immutable one for a repeatable lab.

Windows (PowerShell)#

Skopeo has no Windows build, so use the Linux one in WSL 2. In administrator PowerShell, then restart if asked:

Run in terminalpowershell
wsl --install -d Ubuntu
wsl --list --verbose

Finish Ubuntu's first-run setup, then inside Ubuntu run the Linux commands above. From now on, "Windows step" means: open Ubuntu (wsl) and run the Linux commands. One command also works from PowerShell with wsl in front, such as wsl skopeo --version. Second route, with Docker Desktop and no WSL: docker run --rm quay.io/skopeo/stable:v1.25.1-immutable --version.

Mac (Terminal)#

Run in terminalbash
brew install skopeo
skopeo --version
mkdir -p ~/docker_volumes/skopeo/{data,config,logs,backups}

Check it worked. skopeo --version prints skopeo version 1.25.2 (the source adds the commit when known) and ls ~/docker_volumes/skopeo shows four folders.

Tip: The installed version counts, not this page. With 1.9.3, newer flags fail with "unknown flag".

Step 2: Inspect an image without pulling it#

inspect fetches the manifest and config only. In its default output Name is what you typed, RepoTags comes from the repository, Digest is the top-level manifest, and the other fields describe the image for your OS and CPU (inspect manual).

Linux#

Run in terminalbash
IMG=docker://docker.io/library/alpine:3.24.4
skopeo inspect --no-tags "$IMG"
skopeo inspect --raw "$IMG"
skopeo inspect --no-tags --format '{{.Digest}}' "$IMG"
skopeo inspect --config "$IMG"

Windows (PowerShell)#

In Ubuntu run the Linux commands. One command from PowerShell:

Run in terminalpowershell
wsl skopeo inspect --no-tags docker://docker.io/library/alpine:3.24.4

Mac (Terminal)#

A Mac asks for a darwin image, which Linux images lack. Put --override-os linux before the subcommand:

Run in terminalbash
IMG=docker://docker.io/library/alpine:3.24.4
skopeo --override-os linux inspect --no-tags "$IMG"
skopeo inspect --raw "$IMG"
skopeo inspect --no-tags --format '{{.Digest}}' "$IMG"
CommandYou get
inspectA summary for your platform: layers, labels, environment
inspect --rawThe manifest or index exactly as stored: the list of platforms
inspect --configThe config: entry point, environment, history (--raw for exact bytes)
--format '{{.Digest}}'One field through a Go template
--no-tagsSkips the tag list, faster on big repositories

Check it worked. --raw prints JSON with a manifests list. We did not run it; the Docker Hub API listed alpine:3.24.4 with eight real platforms (amd64, arm64, arm/v7, arm/v6, 386, ppc64le, s390x, riscv64) plus eight unknown/unknown entries, which are build attestations. The --format command prints one sha256: line.

Tip: On a Mac without the override you get no image found in manifest list for architecture amd64, variant "", OS darwin (issue 1345). --raw never needs the override.

Step 3: Log in to your registry (auth.json)#

Logins live in auth.json. The official page says the primary file is ${XDG_RUNTIME_DIR}/containers/auth.json on Linux (a runtime folder that normally vanishes at logout or reboot) and $HOME/.config/containers/auth.json on Windows and macOS. If a registry is missing there, Skopeo also reads ${XDG_CONFIG_HOME}/containers/auth.json, then $HOME/.docker/config.json, then $HOME/.dockercfg, so an old docker login is reused. We pick one persistent file with REGISTRY_AUTH_FILE, which every command reads as its default --authfile.

Linux#

Create the secrets file (three dummy values):

Run in terminalbash
cd ~/docker_volumes/skopeo
cat > .env << 'EOF'
REGISTRY_HOST=registry.example.com
REGISTRY_USER=dummy-user
REGISTRY_PASSWORD=change-me
EOF
chmod 600 .env

Log in with the password on standard input, so it stays out of history and the process list:

Run in terminalbash
cd ~/docker_volumes/skopeo
set -a; . ./.env; set +a
export REGISTRY_AUTH_FILE="$HOME/docker_volumes/skopeo/config/auth.json"
printf '%s' "$REGISTRY_PASSWORD" | skopeo login --username "$REGISTRY_USER" --password-stdin "$REGISTRY_HOST"
chmod 600 "$REGISTRY_AUTH_FILE"

Add the export line to ~/.bashrc. Give the host name only (registry.example.com:5000 is fine), never docker:// or an image path.

Windows (PowerShell)#

In Ubuntu run the Linux commands. With the Docker Desktop route, mount the file: the image sets REGISTRY_AUTH_FILE=/tmp/auth.json inside the container (its Containerfile), which is lost on exit.

Codepowershell
$cfg = "$HOME\docker_volumes\skopeo\config"
New-Item -ItemType Directory -Force $cfg | Out-Null
docker run --rm -it -v "${cfg}:/config" -e REGISTRY_AUTH_FILE=/config/auth.json quay.io/skopeo/stable:v1.25.1-immutable login --username dummy-user registry.example.com

It asks for the password. Repeat the same -v and -e on later commands.

Mac (Terminal)#

Same commands as Linux, with ~/.zshrc instead of ~/.bashrc.

The file looks like this (dummy: the secret is the text dummy-user:change-me in base64):

File contentjson
{
  "auths": {
    "registry.example.com": {
      "auth": "ZHVtbXktdXNlcjpjaGFuZ2UtbWU="
    }
  }
}

Check it worked. skopeo login prints Login Succeeded! (the man page's example), and skopeo login --get-login registry.example.com prints the user name. ls -l "$REGISTRY_AUTH_FILE" shows -rw-------.

Tip: auth is base64, which is encoding, not encryption: echo <value> | base64 -d shows the password. Keep the file chmod 600 and out of Git. Do not create an empty auth.json yourself; the format must be valid JSON (image build README), so let skopeo login create it.

Step 4: Copy an image to your own registry#

The form is skopeo copy SOURCE DESTINATION. The two sides are read independently: the destination inherits nothing from the source name (copy manual).

Linux#

Run in terminalbash
skopeo copy --all --preserve-digests --retry-times 3 \
  docker://docker.io/library/alpine:3.24.4 \
  docker://registry.example.com/mirror/alpine:3.24.4

Save the same image as files for an offline machine, and push it from there later:

Run in terminalbash
cd ~/docker_volumes/skopeo/data
skopeo copy --all docker://docker.io/library/alpine:3.24.4 oci:alpine-oci:3.24.4
mkdir -p alpine-dir
skopeo --override-os linux copy docker://docker.io/library/alpine:3.24.4 dir:alpine-dir
skopeo copy --all oci:alpine-oci:3.24.4 docker://registry.example.com/mirror/alpine:3.24.4

Windows (PowerShell)#

In Ubuntu run the Linux commands. One command from PowerShell:

Run in terminalpowershell
wsl skopeo copy --all --preserve-digests docker://docker.io/library/alpine:3.24.4 docker://registry.example.com/mirror/alpine:3.24.4

Mac (Terminal)#

Same commands as Linux. Keep --override-os linux before copy in the dir: command: dir: holds one image, and without it Skopeo looks for a darwin one.

FlagMeaning
--allIf the source is an index, copy the index and every image in it. It does not mean "all tags"
--preserve-digestsKeep the exact digest or fail. It does not choose what to copy, so pair it with --all
--multi-arch=linux/amd64,linux/arm64Only these platforms. Add --strip-removed-platforms --remove-list-signatures (new in v1.24.0) or the index stays "sparse" and many registries reject it
--retry-times 3Retry network errors. Default: none
--dest-tls-verify=falsePlain-HTTP lab registry only (see Security)

Check it worked. Compare both ends; with --preserve-digests they must match:

Run in terminalbash
skopeo inspect --no-tags --format '{{.Digest}}' docker://docker.io/library/alpine:3.24.4
skopeo inspect --no-tags --format '{{.Digest}}' docker://registry.example.com/mirror/alpine:3.24.4

Tip: Docker's page says a pull of a multi-arch image counts as one pull per architecture, against 100 pulls per six hours for anonymous users. --all on a many-platform image burns the allowance fast. Log in to Docker Hub for the source too (skopeo login docker.io).

Step 5: Mirror a list of images with sync#

sync copies many images and can read a YAML list. Unlike copy, it takes transports as options: write --src docker --dest docker and no docker:// in front of names (sync manual).

Linux#

Run in terminalbash
cd ~/docker_volumes/skopeo/config
cat > images.yaml << 'EOF'
docker.io:
  images:
    library/alpine:
      - "3.24.4"
    library/busybox:
      - "1.37"
quay.io:
  images:
    skopeo/stable:
      - "v1.25.1-immutable"
EOF
skopeo sync --dry-run --all --src yaml --dest docker images.yaml registry.example.com/mirror

Read the planned names. If they look right, run it for real with a log:

Run in terminalbash
skopeo sync --all --retry-times 3 --keep-going --src yaml --dest docker \
  images.yaml registry.example.com/mirror 2>&1 | tee -a ~/docker_volumes/skopeo/logs/sync.log

Windows (PowerShell)#

In Ubuntu run the Linux commands. Keep images.yaml in Ubuntu's home folder, not on a Windows drive.

Mac (Terminal)#

Same commands as Linux.

From the sync manual:

  • A tag list of [] (or none) means all tags. Always list the tags you want.
  • An entry can also use images-by-tag-regex or images-by-semver (for example ">= 3.12.0").
  • --scoped prefixes each destination repository with its source path so same-named images do not collide. Check the dry run before choosing.
  • The YAML may hold credentials: in plain text. We avoid that and use login.
  • Sources: docker, dir, yaml. Destinations: docker, dir. oci: is a copy target only. sync never deletes what vanished upstream.
Your registryPrepare first
Distribution (guide)Nothing: repositories appear on first push. The user needs access
Harbor (guide)The project (mirror) must exist. Use a robot account with Pull and Push. Its name has a dollar sign, so single-quote it: --username 'robot$mirror+skopeo'

Check it worked. The dry run lists each image it would copy. After the real run skopeo list-tags docker://registry.example.com/mirror/alpine shows 3.24.4 (the repository name follows the mapping you saw in the dry run).

Tip: Rerun the dry run after every edit of images.yaml. One forgotten empty tag list can mirror years of old tags.

Step 6: List tags and delete an image#

Linux#

Run in terminalbash
skopeo list-tags docker://registry.example.com/mirror/alpine
skopeo delete docker://registry.example.com/mirror/test-image:discard

Windows (PowerShell)#

In Ubuntu run the Linux commands, or from PowerShell: wsl skopeo list-tags docker://registry.example.com/mirror/alpine.

Mac (Terminal)#

Same commands as Linux.

From the delete manual: it marks an image "for later deletion by the registry's garbage collector", and many registries refuse it. A tag is turned into its digest and the manifest is deleted by digest, so other tags on the same digest go too. Test on a throw-away image. Distribution needs REGISTRY_STORAGE_DELETE_ENABLED=true, and disk space returns only after garbage collection; our Docker Registry guide shows the safe order.

Check it worked. After deleting the test image its tag is gone from list-tags.

Put it behind HTTPS (with or without Traefik)#

Skopeo serves no web page and opens no port, so there is nothing to proxy. HTTPS matters for the registry you copy into.

With Traefik#

No labels are needed for Skopeo. Your registry's labels are in our Docker Registry guide and Traefik guide.

Without Traefik: Caddy#

No reverse_proxy line is needed for Skopeo itself; the Docker Registry guide shows one for the registry, with Caddy's tls internal for a home-only name. Skopeo does not trust such a private certificate on its own. Save Caddy's root certificate as a .crt file in a folder and point Skopeo at it:

Run in terminalbash
skopeo copy --all --dest-cert-dir ~/docker_volumes/skopeo/config/certs \
  docker://docker.io/library/alpine:3.24.4 \
  docker://registry.example.com/mirror/alpine:3.24.4

The other commands use --cert-dir, and login reads /etc/containers/certs.d by default (login manual). Do not switch verification off to silence a warning.

Security and testing#

ControlHow
Credentialsauth.json is base64, not encrypted: chmod 600, never in Git. Use robot or token accounts: read on the source, push on one project
Command line--creds, --src-creds and -p land in history and the process list. Use --password-stdin
TLSKeep verification on. --src-tls-verify=false and --dest-tls-verify=false are for a disposable plain-HTTP lab
SignaturesTLS proves the server, not the builder. copy applies policy.json (~/.config/containers/policy.json, then /etc/containers/policy.json) and --insecure-policy switches that off. See our Cosign guide
Docker socketOnly docker-daemon: uses it; it is root-level power. Registry copies do not need it
RootNot needed for registry copies; needed for the Docker engine or container-storage targets

Quick test: skopeo --version, skopeo login --get-login registry.example.com, then the digest comparison from Step 4.

Common mistakes#

MistakeWhy it happensDo this instead
no image found in manifest list ... OS darwin (issue 1345)inspect and a plain copy pick your own platformskopeo --override-os linux inspect ..., or copy --all
Copy without --all, platforms missing laterOnly the image for your OS and CPU is copied (copy manual)--all, or --multi-arch=linux/amd64,linux/arm64
x509: certificate is not valid for any names, then --tls-verify=false for good (issue 2054)The certificate has no matching name; a maintainer said it needs a proper oneFix the certificate or trust the CA with --cert-dir
unauthorized: authentication required after a good login (issue 1036)One commenter found the destination folder or organisation missing; a maintainer named missing read rightsCheck the full path, that the Harbor project exists, and that the account can read and write
toomanyrequests: You have reached your pull rate limit (issue 1122)Anonymous Docker Hub pulls are limited; in 2020 sync also ignored the login (a bug, since fixed)Log in to the source, list fewer tags, schedule runs
more than one image in oci, choose an image (issue 1136)copy moves one image; two images in one oci: folder are not a multi-platform imageCopy an existing index with --all; build new ones with podman manifest or buildah manifest (maintainer advice)
--preserve-digests fails: Manifest list must be converted ... (issue 3006)oci: forces OCI format, so a Docker-format source is convertedUse dir: for an exact offline copy; avoid 1.22.2 (digest bug)
Login gone next day, or inside a containerThe default file is in a runtime folder; the image sets REGISTRY_AUTH_FILE=/tmp/auth.jsonSet your own REGISTRY_AUTH_FILE and mount it. In the container put --authfile after the subcommand (image README)
Odd failures on an old package (issue 2350)A Debian 11 package was three years old; the maintainer asked for a newer oneCheck skopeo --version first
AI assistants: copy --dry-run, --platform linux/arm64, --creds or --tls-verify on copy, --all-tagsThey look like docker pull or inspect optionsIn the v1.25.2 manuals --dry-run belongs to sync; platform is global --override-os/--override-arch; copy has --src-creds, --dest-creds, --src-tls-verify, --dest-tls-verify; there is no --all-tags
AI assistants: "docker:// needs Docker, use podman://", or docker:// in front of sync namesThe name misleads; we found no podman:// transport in the manualsdocker:// is the registry transport with or without an engine; Podman's store is containers-storage:; sync takes --src docker and bare names

Tip: --override-os and --override-arch are global options: write skopeo --override-os linux copy ....

Tip: After any copy compare the two digests (Step 4). A changed digest means a conversion, which breaks signatures and pinned deployments.

Tip: Old reports show FATA[0000]; the v1.25 source prints Error: .... Search for the message, not the prefix.

Troubleshooting#

ProblemSolution
unknown flag: --strip-removed-platformsYour package is older than v1.24.0. Upgrade or use the container image
Certificate errors with your registryTrust the CA (--cert-dir) or fix the name in the certificate. curl -I https://registry.example.com/v2/ shows what the server presents
unauthorized or denied on pushskopeo login --get-login <host>; check REGISTRY_AUTH_FILE, the project, the push right
Mirror too big or slow--all or an empty tag list. Narrow images.yaml
Need more detailskopeo --debug copy ... (HTTP headers are not shown yet: issue 1392, open)
Error loading trust policy: open /etc/containers/policy.json: no such file or directoryA bare install has no policy file (issue 394); package builds ship one. Stop-gap: --insecure-policy, which disables signature checks

Exact error texts#

  • received unexpected HTTP status: 500 Internal Server Error while syncing every old Alpine tag (issue 2350): the maintainer said read the registry's server logs and suspected very old image formats. Sync fewer tags.
  • Manifest does not match provided manifest digest for docker-daemon:name@sha256:... (issue 1051): the daemon rebuilds the manifest. Copy from the registry by digest instead.
  • trying to reuse blob sha256:... at destination ... unauthorized: authentication required: see the table (issue 1036).

Known bugs (December 2026)#

Issue 3041: v1.25.1 crashed with SIGSEGV on some ppc64le builds; fixed by v1.25.2 on 16 November 2026. The release notes say v1.25.0 was published afterwards only "for completeness" and v1.25.1 is the recommended one. Issues 1392 and 1136 are old open requests. We found no open item labelled a bug that stops a normal install.

Updates and backups#

Update Skopeo. Read the release notes, then update through the channel you installed from (sudo apt-get install --only-upgrade skopeo, sudo dnf upgrade skopeo, brew upgrade skopeo, or a new image tag) and run skopeo --version.

What to back up. The config/ folder (images.yaml, .env, auth.json) and any data/ files you rely on offline. The mirrored images belong to your registry's backup (Docker Registry, docker-volume-backup). sync is not a registry backup: it copies no accounts, projects or settings.

Linux and Mac#

Save as ~/docker_volumes/skopeo/backup.sh:

File contentbash
#!/usr/bin/env bash
set -euo pipefail
base="$HOME/docker_volumes/skopeo"
out="$base/backups/skopeo-$(date +%F).tar.gz"
tar -czf "$out" -C "$base" config
chmod 600 "$out"

Run chmod 700 on it and add this to crontab -e (on a Mac use /Users/<your-user>/...):

File contenttext
0 3 * * * /home/<your-user>/docker_volumes/skopeo/backup.sh

Windows (PowerShell)#

Keep the script inside Ubuntu. In Task Scheduler run wsl.exe with the argument /home/<your-user>/docker_volumes/skopeo/backup.sh daily at 03:00. We did not test the task.

Restore test#

Run in terminalbash
mkdir -p /tmp/skopeo-restore && tar -xzf ~/docker_volumes/skopeo/backups/skopeo-<date>.tar.gz -C /tmp/skopeo-restore
REGISTRY_AUTH_FILE=/tmp/skopeo-restore/config/auth.json skopeo login --get-login registry.example.com
rm -r /tmp/skopeo-restore

The login check prints the user name; the rm removes the unpacked credentials.

Performance and resources#

The docs give no RAM or CPU figures and we measured none. Speed depends on the number of images, platforms (--all multiplies the work) and tags, and on your bandwidth, because every layer passes through the machine running Skopeo. --image-parallel-copies limits how many layers move at once; --dest-precompute-digests skips layers the destination already has, using temporary disk. Watch top or Task Manager during a big sync.

FAQ#

Do I need Docker or Podman? Not for registry-to-registry copies or oci: and dir: folders. Only docker-daemon: and containers-storage: use an engine's storage, and the container-image route on Windows needs Docker to start the container.

Does --all copy all tags? No: all platforms of one tag. Use sync with a YAML list for several tags.

Can I mirror into Harbor? Yes: create the project, log in with a robot account, then copy or sync. Harbor also has its own proxy cache (guide).

Does it keep signatures? copy keeps supported signatures unless you remove them and checks your policy.json. A renamed copy may no longer match the original signing identity. We did not test signing; see the Cosign guide.

Why did my digest change? An image conversion (Docker to OCI), or --strip-removed-platforms. --preserve-digests makes Skopeo fail instead.

Sources#

Checked against the official docs on 2026-12-03. Nothing was run on a real machine by DIY Lab Hub; the commands come from the manuals at tag v1.25.2, the source code and the issues above.

Try one of these