Docker 给没有名称镜像打tag

释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要

当我们导入镜像的时候,发现docker镜像的名称没有了,以及tag号都不存在

[root@web02 eureka]# docker load -i openjdk.tar 
c04d1437198b: Loading layer [==================================================>]   5.88MB/5.88MB
48f2328d458e: Loading layer [==================================================>]  3.072kB/3.072kB
713f9c723422: Loading layer [==================================================>]    126MB/126MB
a7c7b0901946: Loading layer [==================================================>]  32.69MB/32.69MB
bf0f3ad5a9e5: Loading layer [==================================================>]  3.584kB/3.584kB
8b9c3802990e: Loading layer [==================================================>]  85.86MB/85.86MB
cb3b84013e56: Loading layer [==================================================>]  6.378MB/6.378MB
469321784423: Loading layer [==================================================>]  2.184MB/2.184MB
Loaded image ID: sha256:2e398e2ded46b4a2c269a57bf1ef8a43eee0296c3d852ca4dc6fceefb8c40a14
[root@web02 eureka]# docker images
REPOSITORY   TAG       IMAGE ID       CREATED        SIZE
<none>       <none>    2e398e2ded46   4 months ago   257MB

实际上只需要给tag ID打一个标签即可,后面就可以正常使用了

解决办法

[root@web02 eureka]# docker images
REPOSITORY   TAG       IMAGE ID       CREATED        SIZE
<none>       <none>    2e398e2ded46   4 months ago   257MB

#使用IMAGE ID进行tag打标签
[root@web02 eureka]# docker tag 2e398e2ded46 hub.i4t.com:v1
[root@web02 eureka]# docker images
REPOSITORY    TAG       IMAGE ID       CREATED        SIZE
hub.i4t.com   v1        2e398e2ded46   4 months ago   257MB

给TA打赏
共{{data.count}}人
人已打赏
报错锦集

Linux yum安装软件包提示 At least 13MB more space needed on the /boot filesystem

2022-5-18 10:21:26

报错锦集

k8s 1.24 taint污点修改

2022-6-2 15:54:47

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索