Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using arch based images impossible, /var/spool/mail too many levels of symbolic links #3080

Open
GamePlayer-8 opened this issue Mar 24, 2024 · 0 comments
Labels
area/multi-arch kind/bug Something isn't working priority/p1 Basic need feature compatibility with docker build. we should be working on this next. works-with-docker

Comments

@GamePlayer-8
Copy link

Actual behavior
Kaniko fails to extract arch-based images (archlinux images) with error:

error building image: error building stage: failed to get filesystem from image: error calling stat on /var/spool/mail.: stat /var/spool/mail: too many levels of symbolic links

Expected behavior

Kaniko would extract the archlinux image and use it normally.

To Reproduce
Steps to reproduce the behavior:

  1. use in Dockerfile FROM archlinux
  2. See the error in the build stage

Additional Information

  • Dockerfile
FROM archlinux

RUN pacman -Syu --noconfirm base-devel sudo git && \
	useradd yay && \
	mkdir /home/yay && \
	chown -R yay:yay /home/yay && \
	echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers && \
	usermod -aG wheel yay

WORKDIR /tmp
USER yay

RUN git clone https://aur.archlinux.org/yay.git && \
	cd yay && \
	makepkg -si --noconfirm && \
	cd .. && \
	rm -rf yay

USER root

COPY yayer /usr/bin
RUN chmod +x /usr/bin/yayer
RUN echo 'MAKEFLAGS="-j$(nproc --all)"' >> /etc/makepkg.conf
  • Build Context
#!/bin/sh

sudo -u yay yay $*
  • Kaniko Image (fully qualified with digest)

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
@QuanZhang-William QuanZhang-William added works-with-docker kind/bug Something isn't working area/multi-arch priority/p1 Basic need feature compatibility with docker build. we should be working on this next. labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multi-arch kind/bug Something isn't working priority/p1 Basic need feature compatibility with docker build. we should be working on this next. works-with-docker
Projects
None yet
Development

No branches or pull requests

2 participants