Quantcast
Channel: Active questions tagged docker-registry - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 60

Exporting multi-arch Docker image from local registry to .tar file

$
0
0

I have a multi-arch build that is pushing to a local registry I have running:

docker buildx build --platform linux/amd64,linux/arm64 --push -t localhost:5000/myimage:latest

I need to export this multi-arch image to a .tar file for future use with docker load. I cannot for the life of me find a way to do this.

I've tried:

docker pull localhost:5000/myimage:latestdocker save -o myimage.tar localhost:5000/myimage:latest

And this exports only the image for my architecture (amd64). So then I tried:

docker pull --platform linux/arm64 --platform linux/amd64 localhost:5000/myimage:latestdocker save -o myimage.tar localhost:5000/myimage:latest

And this has the same result, even though I'm explicitly telling it to pull both architectures.

How can I export a multi-arch image from a local registry as a single .tar file?


Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>