0
我建立一个图像: Dockerfile:docker build --no-cache = true仍然使用缓存构建?
FROM centos:7
build命令:
$ docker build -t my-image:1.0 .
现在我做一个第二图像(它是基于原始dockerfile) Dockerfile:
FROM centos:7
RUN yum install -y mysql
我使用--no-cache
选项生成true
$ docker build --no-cache=true -t my-image:1.1 .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM centos:7
---> 970633036444
Step 2 : xx
它似乎使用缓存。当我尝试删除我的图像:1.0:
docker rmi 970633036444
Error response from daemon: conflict: unable to delete 970633036444 (cannot be forced) - image has dependent child images
我在做什么错?
附加阅读材料:https://github.com/docker/docker/issues/22832 – VonC