docker save : Saves the specified image as a tar archive file. OPTIONS description: -o : The file to which you output. Generate my_ubuntu_v3.tar documents from mirrored runoob/ubuntu:v3 2.58.1. Grammar ¶
docker save [OPTIONS] IMAGE [IMAGE...]
2.58.2. Example ¶
runoob@runoob:~$ docker save -o my_ubuntu_v3.tar runoob/ubuntu:v3
runoob@runoob:~$ ll my_ubuntu_v3.tar
-rw------- 1 runoob runoob 142102016 Jul 11 01:37 my_ubuntu_v3.ta