许多< none>构建docker映像后创建的映像 [英] Many <none> images created after build a docker image

查看:113
本文介绍了许多< none>构建docker映像后创建的映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FROM scratch
MAINTAINER Aario <AarioAi@gmail.com>
ENV SHARED_GROUP docker

我使用上述dockerfile构建了一个docker镜像。
运行 docker build -t aario / centos之后。
它创建此映像aario / centos和< none> 图片:

I build a docker image with above dockerfile. After runing docker build -t "aario/centos" . It creates this image aario/centos and the <none> image:

可以吗?以及如何解决呢?

Is it ok? And how to solve it?

当我运行 docker rmi 2f ????????? 删除aario / centeros图片。 < none> 图片将在同一时间删除。

When I run docker rmi 2f??????? to remove the aario/centeros image. The <none> image will be removed on the same time.

推荐答案

Docker映像由以下几层组成:

Docker image is composed of layers:

docker history aario/centos

使用上面的命令看到的每一行都是一个单独的层。而且,随着时间的流逝,许多孤立的儿童被送走。层将填满您的磁盘空间。您可以使用以下命令安全地删除它们:

Each row you see using command above is a separate layer. Also, with time, a number of "orphaned" layers will fill up your disk space. You can safely remove them with:

docker image prune

这篇关于许多&lt; none&gt;构建docker映像后创建的映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆