f4exb / sdrangel-docker

Running SDRangel in a Docker container
89 stars 40 forks source link

Build Error #52

Open Klammraute opened 5 months ago

Klammraute commented 5 months ago

I use a raspberry PI4 as server when i try to run "./build_server.sh -f armv8.ubuntu.Dockerfile" on ubuntu server 22 i get the following error. How to solve this error?

=> ERROR [base 3/17] RUN useradd -m sdr -u 0 && echo "sdr:sdr" | chpasswd && adduser sdr sudo && usermod -a -G audio,dial 2.0s

[base 3/17] RUN useradd -m sdr -u 0 && echo "sdr:sdr" | chpasswd && adduser sdr sudo && usermod -a -G audio,dialout,plugdev sdr && sudo usermod --shell /bin/bash sdr: 0.765 useradd: UID 0 is not unique

armv8.ubuntu.Dockerfile:8

7 | RUN apt-get update && apt-get -y install sudo 8 | >>> RUN useradd -m sdr -u ${uid} && echo "sdr:sdr" | chpasswd \ 9 | >>> && adduser sdr sudo \ 10 | >>> && usermod -a -G audio,dialout,plugdev sdr\ 11 | >>> && sudo usermod --shell /bin/bash sdr 12 | RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

ERROR: failed to solve: process "/bin/sh -c useradd -m sdr -u ${uid} && echo \"sdr:sdr\" | chpasswd && adduser sdr sudo && usermod -a -G audio,dialout,plugdev sdr && sudo usermod --shell /bin/bash sdr" did not complete successfully: exit code: 4

thanks

f4exb commented 4 months ago

you should not build the image from the root user account