docker load --input uu_big2.tar
D:\hadoop安装包\images>docker load --input uu_big2.tar
543791078bdb: Loading layer [==================================================>] 65.56MB/65.56MB
c56e09e1bd18: Loading layer [==================================================>] 991.2kB/991.2kB
a31dbd3063d7: Loading layer [==================================================>] 15.87kB/15.87kB
b079b3fa8d1b: Loading layer [==================================================>] 3.072kB/3.072kB
71475e7d3a56: Loading layer [==================================================>] 1.556GB/1.556GB
72adf88b6c2e: Loading layer [==================================================>] 1.156GB/1.156GB
Loaded image ID: sha256:1c27a5fc01c31ee9bd9bf1921afab0697e683787d5bec1c73ac79e3635efaafb
D:\hadoop安装包\images>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 1c27a5fc01c3 17 hours ago 2.75GB
debian latest 00bf7fdd8baf 5 weeks ago 114MB
centos latest 9f38484d220f 5 months ago 202MB
D:\hadoop安装包\images>docker tag 1c27a5fc01c3 uu_big2:v1
D:\hadoop安装包\images>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
uu_big2 v1 1c27a5fc01c3 17 hours ago 2.75GB
debian latest 00bf7fdd8baf 5 weeks ago 114MB
centos latest 9f38484d220f 5 months ago 202MB
- 原因
docker save image_id > aa.tar ,再使用 docker load < aa.tar 时, 此时导入的镜像的repository和 tag 都为 <none>
导出镜像时用 docker save repository > aa.tar 即可
网友评论