Docker uses the same Dockerfile to build different images, resulting in the same image ID

This problem is caused by docker cache: it can be solved
by using it --no-cache, as follows:

docker build --no-cache -t xxx:1.0 .

Guess you like

Origin blog.csdn.net/weixin_43702146/article/details/129711073