kaniko: error building image: error building stage: failed to execute command: extracting fs from image: removing whiteout .wh.dev: unlinkat //dev/pts/ptmx: operation not permitted
Actual behavior
error building image: error building stage: failed to execute command: extracting fs from image: removing whiteout .wh.dev: unlinkat //dev/pts/ptmx: operation not permitted
Expected behavior Build finishes without error.
To Reproduce Steps to reproduce the behavior:
- Enable Kaniko and set version:
gcloud config set builds/use_kaniko True
gcloud config set builds/kaniko_image gcr.io/kaniko-project/executor:v0.17.1
- Start build:
gcloud builds submit --tag gcr.io/project_id/test_image
- Build is finished.
- Start build again.
- Consistently see the same error message for all subsequent builds.
Additional Information Dockerfile:
FROM nginx:1.17.8-alpine
LABEL name="test_image"
RUN rm -rf /etc/nginx/conf.d/* && rm -rf /usr/share/nginx/html
Kaniko image:
Pulling image: gcr.io/kaniko-project/executor:v0.17.1
v0.17.1: Pulling from kaniko-project/executor
Digest: sha256:565d31516f9bb91763dcf8e23ee161144fd4e27624b257674136c71559ce4493
Triage Notes for the Maintainers
| Description | Yes/No |
|---|---|
| Please check if this a new feature you are proposing |
|
| Please check if the build works in docker but not in kaniko |
|
Please check if this error is seen when you use --cache flag |
|
| Please check if your dockerfile is a multistage dockerfile |
|
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (10 by maintainers)
~I’m not able to repro this bug using tag
a1af057f997316bfb1c4d2d82719d78481a02a79~Dockerfile
Docker command
Test
~@mcfedr am I missing something from the repo steps or interpreting the test result wrong?~
This is the same problem as #1082 $HOME is not set correctly during the build, but is correct in the final image.
Works fine when I dropped the cache by deleting
$DOCKER_IMAGE/cachetags.