m1k1o / win10-in-docker

Run WIN10 inside Docker, connect via VNC - lightweight repository.
28 stars 17 forks source link

error when run docker build #2

Open phicha20224 opened 2 years ago

phicha20224 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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