什么是构建缓存?
由于每一步的构建过程都会将结果提交为镜像,所以Docker的构建过程就显得非常聪明,它会将之前构建的镜像层看作缓存。
不想使用构建缓存怎么办?
# 使用--no-cache选项来略过构建缓存
sudo docker build --no-cache -t="jamtur01/static_web" .
什么是构建缓存?
由于每一步的构建过程都会将结果提交为镜像,所以Docker的构建过程就显得非常聪明,它会将之前构建的镜像层看作缓存。
不想使用构建缓存怎么办?
# 使用--no-cache选项来略过构建缓存
sudo docker build --no-cache -t="jamtur01/static_web" .