Error related to kaniko – jenkins – cache registry.
có thể bạn bỏ flag: --use-new-run
Khi build image trên kaniko thì bị lỗi này khi dùng chung flag là: --cache=true
error building image: error building stage: failed to execute command: extracting fs from image: removing whiteout .wh.dev: unlinkat //dev/console: device or resource busy
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "setup user: no such file or directory": unknown
Khả năng bị lỗi cache trên registry:
asia.gcr.io/nimtechnology/po_airflow/cache
cần xoá cache image
bạn có thể tham khài sau:
https://blog.lazybit.ch/docker-registry-in-cluster-kaniko-cache/
Kaniko take much time to snapshot full system
sau đây là ý kiến của 1 developer:
cho mình hỏi vd trên môi trường uat mình muốn skip việc Taking snapshot of full filesystem...
thì có cách nào config ko (mình vẫn muốn build docker), nhưng mà thấy cái snapshot full system này ko cần thiết lắm trên dev, mà tiết kiệm đc khá nhiều thời gian ấy
Vậy chúng ta cần có các flag như sau:
--snapshotMode=redo
cái này thì chỉ bỏ snapshot ở lần cuối cùng
--single-snapshot=true
Cái này hình như là bỏ toàn bộ, ko snapshot
No Cache when Build by Kaniko
--no-cache
https://stackoverflow.com/questions/66662042/how-to-clear-kaniko-cache-on-build-for-cloud-run