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

Unable to build images based on fedora #291

Closed
bram-bezem opened this issue Aug 17, 2018 · 2 comments · Fixed by #293
Closed

Unable to build images based on fedora #291

bram-bezem opened this issue Aug 17, 2018 · 2 comments · Fixed by #293
Assignees
Labels
kind/bug Something isn't working

Comments

@bram-bezem
Copy link

bram-bezem commented Aug 17, 2018

It seems that kaniko is unable to build images based on the official fedora images from https://hub.docker.com/_/fedora/.

A Dockerfile consisting of

FROM fedora

fails with the following error
level=error msg="symlink ../proc/self/mounts /etc/mtab: file exists"

This happens for all fedora tags including 28/latest, 27 and 26

The command used and full output is as follows

$ docker run -v $(pwd):/workspace gcr.io/kaniko-project/executor:latest -f Dockerfile -d anywhere
time="2018-08-17T10:32:21Z" level=info msg="appending to multi args anywhere"
time="2018-08-17T10:32:21Z" level=info msg="Downloading base image fedora"
2018/08/17 10:32:21 No matching credentials were found, falling back on anonymous
time="2018-08-17T10:32:22Z" level=info msg="Mounted directories: [/kaniko /var/run /proc /dev /dev/pts /sys /sys/fs/cgroup /sys/fs/cgroup/cpuset /sys/fs/cgroup/cpu /sys/fs/cgroup/cpuacct /sys/fs/cgroup/blkio /sys/fs/cgroup/memory /sys/fs/cgroup/devices /sys/fs/cgroup/freezer /sys/fs/cgroup/net_cls /sys/fs/cgroup/perf_event /sys/fs/cgroup/net_prio /sys/fs/cgroup/hugetlb /sys/fs/cgroup/pids /sys/fs/cgroup/systemd /dev/mqueue /workspace /etc/resolv.conf /etc/hostname /etc/hosts /dev/shm /proc/bus /proc/fs /proc/irq /proc/sys /proc/sysrq-trigger /proc/acpi /proc/kcore /proc/keys /proc/timer_list /proc/sched_debug /sys/firmware]"
time="2018-08-17T10:32:23Z" level=info msg="Unpacking layer: 0"
time="2018-08-17T10:32:23Z" level=info msg="Not adding /dev because it is whitelisted"
time="2018-08-17T10:32:23Z" level=info msg="Not adding /etc/hostname because it is whitelisted"
time="2018-08-17T10:32:23Z" level=info msg="Not adding /etc/hosts because it is whitelisted"
time="2018-08-17T10:32:23Z" level=error msg="symlink ../proc/self/mounts /etc/mtab: file exists"
@priyawadhwa
Copy link
Collaborator

Hey @brambezem , thanks for pointing this bug out -- I've opened a PR which should fix this issue.

@priyawadhwa
Copy link
Collaborator

Hey @brambezem , this issue should be fixed with #293 -- please open another issue if you run into any problems!

@priyawadhwa priyawadhwa self-assigned this Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants