Docker import 命令

Docker 教程 · 2019-02-18 19:27:46

docker import : 从归档文件中创建镜像。

语法

docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]

OPTIONS说明:

  • -c :应用docker 指令创建镜像;

  • -m :提交时的说明文字;

实例

从镜像归档文件my_ubuntu_v3.tar创建镜像,命名为codercto/ubuntu:v4

codercto@codercto:~$ docker import  my_ubuntu_v3.tar codercto/ubuntu:v4  
sha256:63ce4a6d6bc3fabb95dbd6c561404a309b7bdfc4e21c1d59fe9fe4299cbfea39
codercto@codercto:~$ docker images codercto/ubuntu:v4
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
codercto/ubuntu       v4                  63ce4a6d6bc3        20 seconds ago      142.1 MB

点击查看所有 Docker 教程 文章: https://codercto.com/courses/l/15.html

查看所有标签

Web Design in a Nutshell

Web Design in a Nutshell

Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99

Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具