Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

error when run docker build #2

Open
phicha20224 opened this issue Dec 11, 2021 · 2 comments
Open

error when run docker build #2

phicha20224 opened this issue Dec 11, 2021 · 2 comments

Comments

@phicha20224
Copy link

when running docker build -t win10 .

it show
Step 6/13 : RUN git clone https://aur.archlinux.org/yay.git .; makepkg -si --noconfirm; pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf netctl libvirt-dbus libguestfs --noconfirm;
---> Running in fc8695956e3a
Cloning into '.'...
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
:: Synchronizing package databases...
core downloading...
extra downloading...
community downloading...
community-testing downloading...
:: Starting full system upgrade...
resolving dependencies...
:: There are 2 providers available for resolvconf:
:: Repository core

  1. openresolv 2) systemd-resolvconf

Enter a number (default=1):
looking for conflicting packages...
:: iptables-nft and iptables are in conflict. Remove iptables? [y/N] error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

please help Thank You

@DONG-Jason
Copy link

DONG-Jason commented Dec 12, 2021

USER arch
WORKDIR /home/arch/yay
RUN sudo chmod -R a+w /home/arch/yay; \
git clone https://aur.archlinux.org/yay.git .; \
sudo -u nobody makepkg -si --noconfirm; \

@p1qt
Copy link

p1qt commented Feb 26, 2022

USER arch WORKDIR /home/arch/yay RUN sudo chmod -R a+w /home/arch/yay; \ git clone https://aur.archlinux.org/yay.git .; \ sudo -u nobody makepkg -si --noconfirm; \

Hi @DONG-Jason I did as you said but still got the error,can you share your Dockerfile . thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants