Here's how to save and load docker images:
Example scenario: To save a docker image from a docker repository and save it as a tar file locally.
- Save the image as a tarball
docker save repositoryname:tag > repotag.tar
- Zip the image
gzip repotag.tar
- Copy the tarball to the new machine.
scp repotag.tar.gz <foreign machine>
- Unzip The tarball
gunzip repotag.tar.gz
- Load the docker image
docker load < repotar.tar
- Find the Image ID
docker images
- Tag the image
docker tag repositoryname:tag