English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
docker import : Create an image from an archive file.
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
OPTIONS Description:
-c :Apply docker commands to create an image;
-m :Description text at the time of submission;
From the image archive file my_ubuntu_v3.tar to create an image named w3codebox/ubuntu:v4
w3codebox@w3codebox:~$ docker import my_ubuntu_v3.tar w3codebox/ubuntu:v4 sha256:63ce4a6d6bc3fabb95dbd6c561404a309b7bdfc4e21c1d59fe9fe4299cbfea39 w3codebox@w3codebox:~$ docker images w3codebox/ubuntu:v4 REPOSITORY TAG IMAGE ID CREATED SIZE w3codebox/ubuntu v4 63ce4a6d6bc3 20 seconds ago 142.1 MB