Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker image convert to tar.gz

docker save myimage:latest | gzip > myimage_latest.tar.gz
 or
docker save -o nginx-all.tar nginx # All image of nginx convert into tar
 or 
docker save -o nginx.tar nginx:latest # Latest image of nginx convert into tar 
 
# Load images
docker load < myimage_latest.tar.gz
 or 
docker load --input nginx.tar
 
PREVIOUS NEXT
Tagged: #docker #image #convert
ADD COMMENT
Topic
Name
1+4 =