docker使用同一个Dockerfile构建不同的镜像,导致镜像id一样的问题

这个问题是由docker缓存导致:
使用--no-cache即可解决,如下:

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

猜你喜欢

转载自blog.csdn.net/weixin_43702146/article/details/129711073