Read only directory

389 views
Skip to first unread message

Igor David

unread,
Apr 6, 2021, 5:42:11 AM4/6/21
to kaniko...@googlegroups.com
Hello,

Is there any way to make Kaniko ignore certain directory which is mounted as read-only inside Kaniko container?

For example, suppose these is a directory /bin/ro-dir which is mounted as a read only in every container, including Kaniko one.

Kaniko builds are failing with the error message:

"Error building image: error building stage: failed to get filesystem from image: error removing bin to make way for new symlink: unlink at //bin/ro-dir/file1: read-only file system"

Dockerfile used is pretty basic:

FROM image-name
RUN ls
USER 1000
CMD [ "ls" ]

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages