Docker import command
docker import: create a mirror from the archive.
grammar
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
OPTIONS Description:
-c: Application docker instruction create a mirror;
-m: when submitting captions;
Examples
my_ubuntu_v3.tar create a mirror image from the archive file named w3big / ubuntu: v4
w3big@w3big:~$ docker import my_ubuntu_v3.tar w3big/ubuntu:v4 sha256:63ce4a6d6bc3fabb95dbd6c561404a309b7bdfc4e21c1d59fe9fe4299cbfea39 w3big@w3big:~$ docker images w3big/ubuntu:v4 REPOSITORY TAG IMAGE ID CREATED SIZE w3big/ubuntu v4 63ce4a6d6bc3 20 seconds ago 142.1 MB