docker import : Create a mirror from the archive file. OPTIONS description: -c : Apply the docker instruction to create a mirror -m : Description at the time of submission Create an image from the image archive file my_ubuntu_v3.tar and name it runoob/ubuntu:v4 2.60.1. Grammar ¶
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
2.60.2. Example ¶
runoob@runoob:~$ docker import my_ubuntu_v3.tar runoob/ubuntu:v4
sha256:63ce4a6d6bc3fabb95dbd6c561404a309b7bdfc4e21c1d59fe9fe4299cbfea39
runoob@runoob:~$ docker images runoob/ubuntu:v4
REPOSITORY TAG IMAGE ID CREATED SIZE
runoob/ubuntu v4 63ce4a6d6bc3 20 seconds ago 142.1 MB