Docker import Command
docker import : Creates an image from an archive file.
Docker import Syntax
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
OPTIONS Description.
- -c : Application of the docker command to create an image.
- -m : The description text for the commit.
Docker import Example
Create the image from the image archive my_ubuntu_v3.tar as apidemos/ubuntu:v4
apidemos@apidemos:~docker import my_ubuntu_v3.tar apidemos/ubuntu:v4
sha256:63ce4a6d6bc3fabb95dbd6c561404a309b7bdfc4e21c1d59fe9fe4299cbfea39
apidemos@apidemos:~ docker images apidemos/ubuntu:v4
REPOSITORY TAG IMAGE ID CREATED SIZE
apidemos/ubuntu v4 63ce4a6d6bc3 20 seconds ago 142.1 MB