Posted on 01 Feb, 2024
Short guide on how to export and import docker images across different machines.
-
Build for different platforms
docker build -t ugit-optimized-linux --platform linux/amd64 .
-
Save the image
docker save <image:tag> > test.tar
-
Tranfer the image to another machine.
-
Load the image
docker load < test.tar